izbryte Posted June 6, 2008 Share Posted June 6, 2008 Why isn't this working for me? Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^old_domain.com [nc] rewriterule ^(.*)$ http://www.new_domain.com/$1 [r=301,nc] Link to comment https://forums.phpfreaks.com/topic/109016-htaccess-redirect/ Share on other sites More sharing options...
redbullmarky Posted June 6, 2008 Share Posted June 6, 2008 not 100% but Apache directives could be case sensitive. so rewritecond != RewriteCond rewriterule != RewriteRule http_host != HTTP_HOST etc you might want to have a look at the docs for examples with the correct case. Link to comment https://forums.phpfreaks.com/topic/109016-htaccess-redirect/#findComment-559290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.