Page 1 of 1
WordPress Mod Rewrite on main and sub directory
Posted: Tue May 10, 2016 11:09 pm
by shanjie
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
Re: WordPress Mod Rewrite on main and sub directory
Posted: Wed May 11, 2016 6:38 am
by skurudo
shanjie wrote:I have got the mod rewrite working by setting the web template to wordpress2.
Do you use nginx + php-fpm?
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?
Edit you template or nginx config?
Re: WordPress Mod Rewrite on main and sub directory
Posted: Wed May 11, 2016 3:43 pm
by shanjie
skurudo wrote:shanjie wrote:I have got the mod rewrite working by setting the web template to wordpress2.
Do you use nginx + php-fpm?
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?
Edit you template or nginx config?
Yes, I am using it. nginx + php-fpm
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.