M
M
mr_blond972015-08-12 14:29:23
htaccess
mr_blond97, 2015-08-12 14:29:23

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

1 answer(s)
S
Sergey Zelensky, 2015-08-12
@SergeyZelensky-Rostov

not easierRedirect http://site.org http://site.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question