O OutKa5t Guest Jun 9, 2008 #1 Hello, I would like to force users to use www.mydomain.com on one of my domains rather than http://mydomain.com Can anyone tell me how to do this? Thanks,
Hello, I would like to force users to use www.mydomain.com on one of my domains rather than http://mydomain.com Can anyone tell me how to do this? Thanks,
W wsani Guest Jun 9, 2008 #2 PHP re-direct: Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); htaccess re-direct: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://domain.com/$1 [r=301,nc]
PHP re-direct: Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); htaccess re-direct: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://domain.com/$1 [r=301,nc]