Forum Moderators: phranque
xoverride.example.com should remain xoverride.example.com . In the following code this url is rewritten and I don't want that to happen:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST}!^(www\.example\.com)?$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.example\.com$ [NC]
RewriteRule .* http://www.example.com/example/exampaccount.form?account=%1 [P,L]
How can modify the code above so that the url (e.g. xoverride.example.com) remains the same?
Also, even if the code was correct, you might still have the problem of exposing the new URL. However, the code posted is not responsible for exposing the new URL. Use a server headers checker to test; I suspect that you will see that some other code is forcing an external redirect, and that is why the new URL is being exposed.
Jim