Answer the question
In order to leave comments, you need to log in
Why doesn't a 301 redirect made with .htaccess work?
There are two domains site.org and site.com and two servers respectively. You need to do a 301 redirect from .org to .com. I created .htaccess on the server with .org, but for some reason it is not processed.
Option +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC]
RewriteRule ^([^/]+) $1 [L]
RewriteCond %{HTTP_HOST} ^site.org
RewriteRule ^(.*)$ https://site.com/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
not easierRedirect http://site.org http://site.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question