Seilordp2014-09-03 14:53:03
Seilordp, 2014-09-03 14:53:03

301 .htaccess - how to make single page exception?

Good afternoon. There is a design for a 301 redirect from the WWW domain to a domain without:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.site\.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]

There is a need for www.site.ru/result.php to be available and this rule would not work for it. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Oleg Pavlov, 2014-09-03

Try after RewriteEngine add something like this
RewriteCond %{REQUEST_URI} !^/result\.php$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question