Title: WordPress   htaccess = help please!
Last modified: August 20, 2016

---

# WordPress htaccess = help please!

 *  [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * (@impactphoto)
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/)
 * Hi folks
    I’d appreciate some good advice.
 * I have two wordpress installations. Lets call one siteA which is in my ISP’s 
   Linux server root directory. Lets call the second siteB, which is in a subdirectory
   of the same server called siteB.
 * Actual structure is:=
    [http://www.siteA.com](http://www.siteA.com) [http://www.siteA.com/siteB/](http://www.siteA.com/siteB/)
 * I own two domain names siteA.com and siteB.com. I want people to use the address
   [http://www.siteB.com](http://www.siteB.com) when accessing everything on siteB,
   not [http://www.siteA.com/siteB/](http://www.siteA.com/siteB/).
 * I want to leave the “real” siteA alone!
 * I have been assured this can be done using the .htaccess file, but I’ve failed
   so far!
    I have managed to “mask” the home page of siteB using the features of
   my ISP’s cPanel interface, but it reverts back to [http://www.siteA.com/siteB/](http://www.siteA.com/siteB/)
   once you move away from the home page.
 * All I want is to mask the [http://www.siteA.com/siteB/](http://www.siteA.com/siteB/)
   with [http://www.siteB.com/](http://www.siteB.com/) ……
 * I hope this makes sense and someone can suggest a way forward for me (rewrite
   rules were mentioned by someone).
 * Thanks for reading this far!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * (@impactphoto)
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079695)
 * PS the addresses “siteA” and “siteB” are just examples, but the process of posting
   the request turned them into formatted addresses – ho hum!
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079777)
 * You’d be better off mapping a domain to siteb via DNS really. (Don’t worry, we
   know SiteA/B is an example 😉 )
 * > I have managed to “mask” the home page of siteB using the features of my ISP’s
   > cPanel interface, but it reverts back to [http://www.siteA.com/siteB/](http://www.siteA.com/siteB/)
   > once you move away from the home page.
 * Is siteB a wordPress site? If so, is it set up with the URLs as SiteB.com or 
   SiteA.com/SiteB?
 *  Thread Starter [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * (@impactphoto)
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079908)
 * Hi Ipstenu & thanks for your advice!
 * Yes, I overlooked DNS as a possibility – will check today.
    Both my sites, SiteA
   and SiteB are wordpress sites. On SiteB, currently, both WordPress URL and WordPress
   Site address URL are set to SiteA/SiteB.
 * Can I change either of these values to SiteB only, or will this be followed by
   the “whizz-bang” of a crashing, inaccessible installation? :o)
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079934)
 * I don’t know. It won’t crash your server, but if may make your site inaccessible
   if it doesn’t work. If so, though, it’s easy to fix by editing those site and
   home URL values in the database. Go ahead and try it.
 *  Thread Starter [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * (@impactphoto)
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079974)
 * Yep, it sure made the system inaccessible! Fixed via the database now.
 * Anyone out there fancy suggesting something on the .htaccess front?
    Having read
   up a bit on this now, I can see how it might possibly work, but it looks a bit
   complicated imho!
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079983)
 * [http://stackoverflow.com/questions/4810846/mapping-a-secondary-domain-to-a-subdirectory-using-mod-rewrite](http://stackoverflow.com/questions/4810846/mapping-a-secondary-domain-to-a-subdirectory-using-mod-rewrite)
   for .htaccess but you may also need some domain parking/httpd.conf tweaks.
 *  Thread Starter [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * (@impactphoto)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079992)
 * I think you’re right.
    I also think I’m slightly out of my depth here, so have
   asked the question on their site.
 * I’m also concerned that if I manage to get my url masked, it might stop SEO services
   from working. I’ll post anything useful that comes back.
    Thanks for your advice
   Ipstenu.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WordPress htaccess = help please!’ is closed to new replies.

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)
 * [domain-name](https://wordpress.org/support/topic-tag/domain-name/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [Setup](https://wordpress.org/support/topic-tag/setup/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [impactphoto](https://wordpress.org/support/users/impactphoto/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/wordpress-htaccess-help-please-1/#post-2079992)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
