---- htaccess Rewrite Rule to remove Wordpress Multisite Subdomain in URL
calvinmicklefinger - 1:34 pm on Sep 12, 2011 (gmt 0)
I wish I could explain more, but I am absolutely not a coder. I does wish I wuz.
The htaccess code I show is an exact cut and paste of the complete htaccess specified by the Wordpress setup when I installed the script.
"Where does the requested content actually live?" ... in the subdomain.
More info ... Typical scenario.
(1) User arrives at site, which is ...
(2) User inputs subdomain name into an input box. In my instance, the input box will only accept five digit numeric zip code information. They enter
(3) After submitting numeric information, a plugin redirects the user to a subdomain for that zip code ...
but they only see
(4) If the subdomain for a particular zip code does not exist, then the user is redirected to a "default" zip code subdomain.
I am trying to prevent the user from recognizing that the zip code is a part of the specific addrress.
I do "believe" that the visible URL shown in the address bar can be rewritten to be different from the actual path to the file. If it could not, then Wordpress would not be able to write "pretty" permalinks.