301 redirect to another domain

Problems with the Windows version of XAMPP, questions, comments, and anything related.

301 redirect to another domain

Postby Xefan » 07. November 2009 17:09

I use a copy of my website on xampp, so I want to redirect all internal links to a local site. I added to .htaccess these lines:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain1\.com
RewriteRule ^(.*)$ http://localhost/test/$1 [R=301,L]

and restarted apache, but nothing helps. What have I done wrong?
Xefan
 
Posts: 2
Joined: 07. November 2009 17:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests