How to rewrite a domain to another domain using .htaccess

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to rewrite a domain to another domain using .htaccess

Post by a24uall »

How to rewrite a domain to another domain using .htaccess

Redirect arunp.in to google.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^arunp\.in$ [OR]
RewriteCond %{HTTP_HOST} ^www\.arunp\.in$
RewriteRule ^/?$ "http\:\/\/www\.google\.com\/" [R=301,L]
Arun
WebhostingDevelopment.com
Post Reply

Return to “HTACCESS RELATED”