Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

WordPress Mod Rewrite on main and sub directory

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
shanjie
Posts: 37
Joined: Thu Jan 14, 2016 12:02 pm

WordPress Mod Rewrite on main and sub directory
  • Quote

Post by shanjie » Tue May 10, 2016 11:09 pm

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: WordPress Mod Rewrite on main and sub directory
  • Quote

Post by skurudo » Wed May 11, 2016 6:38 am

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?
Top

shanjie
Posts: 37
Joined: Thu Jan 14, 2016 12:02 pm

Re: WordPress Mod Rewrite on main and sub directory
  • Quote

Post by shanjie » Wed May 11, 2016 3:43 pm

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.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password