Mobile app version of vmapp.org
Login or Join
Odierno851

: Redirecting requests to a subfolder We have multiple WordPress installations on our IIS7 (Windows Server 2008) Server as follows: http://www.example.com/site_one http://www.example.com/site_two http://www.example.com/site_three

@Odierno851

Posted in: #Iis #Iis7 #UrlRewriting

We have multiple WordPress installations on our IIS7 (Windows Server 2008) Server as follows:
www.example.com/site_one http://www.example.com/site_two www.example.com/site_three

These all work properly. However we would like to configure it so that when users visit the root domain (http://www.example.com/) or any page underneath, ie:
www.example.com/ http://www.example.com/page1 www.example.com/page2

They would actually see the corresponding pages for site_two:
www.example.com/site_two/ http://www.example.com/site_two/page1 www.example.com/site_two/page2

How could we achieve this?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

2 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

You can use the URL rewrite modile of IIS 7. More info here.

10% popularity Vote Up Vote Down


 

@Sent6035632

Try using the tutorial listed here:
askwpgirl.com/how-do-i-move-wordpress-from-a-subdirectory-to-the-root-directory/
The only thing I am unsure of is the coexistence of this setup with other WordPress sites in other subdirectories off the root. If it doesn't work, you can always delete the index.php file that you're copying to the root to revert.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme