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] Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/109016-htaccess-redirect/#findComment-559290 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.