WordPress Mod Rewrite on main and sub directory
WordPress Mod Rewrite on main and sub directory
I have got the mod rewrite working by setting the web template to wordpress2.
But I have another installation at the sub directory and the mod rewrite doesn't seem to be working correctly as it will redirect back to the main installation. Any suggestion?
For instance, when I clicked on abc.com/sub/contact, it will redirect to abc.com/contact
But I have another installation at the sub directory and the mod rewrite doesn't seem to be working correctly as it will redirect back to the main installation. Any suggestion?
For instance, when I clicked on abc.com/sub/contact, it will redirect to abc.com/contact
Re: WordPress Mod Rewrite on main and sub directory
Do you use nginx + php-fpm?shanjie wrote:I have got the mod rewrite working by setting the web template to wordpress2.
Edit you template or nginx config?shanjie wrote:But I have another installation at the sub directory and the mod rewrite doesn't seem to be working correctly as it will redirect back to the main installation. Any suggestion?
Re: WordPress Mod Rewrite on main and sub directory
Yes, I am using it. nginx + php-fpmskurudo wrote:Do you use nginx + php-fpm?shanjie wrote:I have got the mod rewrite working by setting the web template to wordpress2.
Edit you template or nginx config?shanjie wrote:But I have another installation at the sub directory and the mod rewrite doesn't seem to be working correctly as it will redirect back to the main installation. Any suggestion?
I changed the Web Template NGINX to Wordpress2. Its working on the primary wordpress located in public_html, but another wordpress at public_html/abc is not working. All the buttons that I click will change back to public_html.
For instance, I click on http://www.abc.com/abc/contactus it will go to http://www.abc.com/contactus.