I have integrated WordPress into my Magento 2 application using Fishpig. I have changed WordPress home address as sitename/m4blog.
In my local http:localhost/sitename/m4blog is working fine. But when I deployed same thing to server, then getting 404 error. In server the url is https://sitename/m4blog. I have checked the perma links settings. Beow Permalinks settings it is like this
If your
.htaccessfile was writable, we could do this automatically, but it isn’t so these are themod_rewriterules you should have in your.htaccessfile. Click in the field and press CTRL + a to select all.
After this there is code for .htaccess. So I replaced my .htaccess in server with this code . But no use. Could anybody help me out to resolve the issue?
First way
Set your WordPress setup folder name "wp".
M2 Admin Menu > WordPress > Path = wp
Database: magento2_wp > Table: wp_options
option_id = 1 option_name = siteurl option_value = http://www.example.com/wp //Folder name of your WordPress installation. autoupload = yes
option_id = 2 option_name = home option_value = http://www.example.com/blog //Frontend URL autoupload = yes
Second Way