Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- htaccess Rewrite Rule to remove Wordpress Multisite Subdomain in URL


lucy24 - 4:39 pm on Sep 12, 2011 (gmt 0)


Do a Forums search for the two words "rewrite" and "redirect". For some reason this has become the Question of the Hour* so you will find it answered over and over again with, ahem, increasing impatience.

Functionally what you want to do is this:

First REDIRECT the user to whatever it is you want their browser's address bar to say-- but only if they have not already been rewritten.

Then REWRITE that same user to the place they will really be going to.

Note that external files such as images and css go by where they think you are (the Redirected location), not by where you really are (the Rewritten location). In your specific case this is probably a good thing, though it can cause much grief. Voice of Experience


* Or maybe it was the question of the decade and was simply on hiatus when I started reading these forums.


Thread source:: http://www.webmasterworld.com/apache/4361199.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com