---- htaccess Rewrite Rule to remove Wordpress Multisite Subdomain in URL
g1smd - 1:42 pm on Sep 12, 2011 (gmt 0)
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.
No. This is exactly backwards from what actually happens.
A rewrite does not "make" a URL. URLs are defined in the links on your pages. A URL "exists" as soon as there is a link. The URL exists whether or not there is any resource that could fulfill the request.
The rewrite works only when the URL request arrives at the server after the link is clicked. The rewrite connects the incoming URL request from "out there on the web" to a non-default internal server path "here inside the server".
The rewrite process cannot and does not change the links on the pages of your site. You must alter the script that generates the HTML pages so that it formulates the URLs in links in the manner that you want the user to see them.
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.
Yes, you can rewrite a URL request in order to fetch content from a different filepath inside the server.
URLs and filepaths are not at all the same thing. URLs are used "out there" on the web. URLs are defined in the links that people click on. Server filepaths are used "here" inside the server. Inside the server there is no concept of URLs or of subdomains. There are only folders and files.
Unless you very clearly specify what you want to do in terms of both URLs used "out there on the web" and filepaths used "here inside the server" you will never be able to move on from the requirements phase to the coding phase.
So, no more of this "I want to hide a URL" nonsense, and on to clear specifications please.