Forum Moderators: phranque
What rewrite rules should I use in .htaccess to do the following:
[hosting_co.example.co.uk...] redirects to [homepages.hosting_co.co.uk...] but force [hosting_co.example.co.uk...] to stay in the address bar? Same goes for something like [hosting_co.example.co.uk...]
My current rewrite rules for redirection works, but the homepages.hosting_co link appears in the address bar afterwards, which I want to avoid.
TIA :)
[edited by: jdMorgan at 7:34 pm (utc) on June 5, 2004]
[edit reason] Obscured specifics per TOS [/edit]
Welcome to WebmasterWorld [webmasterworld.com]!
> but the homepages.hosting_co link appears in the address bar afterwards, which I want to avoid.
This cannot be avoided when doing an external redirect, which is required to reach an external host.
I'd suggest you re-configure your machine to add Apache mod_proxy, and look into using the ProxyPass directive to accomplsh your goal. Your machine would then serve as a proxy for the external hosting space. (This is not very efficient, but it's the only way to hide the domain change.)
Jim