Jump to content

Archived

This topic is now archived and is closed to further replies.

izbryte

.htaccess redirect

Recommended Posts

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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.