CrazyIvan wrote:
> Hi,
>
> I'm running a php-nuke site at lets say "domain.com". For some
> reason, php-nuke doesn't like people browsing the site as
> "www.domain.com". So what I need to do is whenever someone tries to
> access "http://www.domain.com", they automatically get redirected to
> "http://domain.com".
mod_rewrite:
RewriteCond %{HTTP_HOST} ^www.domain.com
RewriteRule (.*) <a style='text-decoration: underline;' href="http://domain.com$1" target="_blank">http://domain.com$1</a> [L,R]
--
Rossz<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Redirect Question