|
Posted by Vic Spainhower on 03/06/07 15:20
You have to check wether they're at the right domain offcourse. If it
resolves to the same directory, I'd either make _all_ links relative, or
I'd use mod_rewrite in apache for this:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ %{SERVER_PROTOCOL}://www.%{HTTP_HOST}/$1 [R,QSA]
--
Rik Wasmus
Thanks Rik,
This seems to have worked for me. However, I have to check with the user who
was having the problem and see if it works on his machine. Appreciate your
help.
if ($_SERVER["HTTP_HOST"] == 'mysite.com')
echo '<meta http-equiv="REFRESH" content="0; URL=http://www.mysite.com">';
?>
Vic
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions: http://tinyurl.com/anel
Navigation:
[Reply to this message]
|