Board index Linux General Stuffs

Moderator: chandranjoy

htaccess redirection from a domain to another domain

Postby chandranjoy » Fri Dec 23, 2011 6:59 pm

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^/?$ "http\:\/\/anotherdomain\.com\/index\/.php" [R=301,L]
chandranjoy
Site Admin
 
Posts: 283
Joined: Fri Oct 23, 2009 11:19 pm

Return to General Stuffs

Who is online

Users browsing this forum: No registered users and 1 guest


cron