Greetings,
How can I use a .htaccess file to redirect visitors to another web site?
Thanks,
Shane.

Greetings,
How can I use a .htaccess file to redirect visitors to another web site?
Thanks,
Shane.
Basic Linux Hosting on classic platform; Parallels Plesk Panel 10.3.1
Hi Shane,
Hope this help!
Redirect to wwwOptions +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
http://myhosting.com/forums/programming/1493-301.htmlOptions +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Cheers

I finally figured it out:
It took a long time to get it working because I had to exclude visitors to the intranet subdirectory. But it finally works. I also realized I'm posting in the wrong forum. This is actually for my classic hosting account.Code:RewriteEngine on RewriteCond %{REQUEST_URI} !^/intranet([/\w\.-]*)*\/?$ [NC] RewriteRule .* http://www.custompopups.com
Shane.
Basic Linux Hosting on classic platform; Parallels Plesk Panel 10.3.1