Answer the question
In order to leave comments, you need to log in
Redirect all pages of the site, except for some?
Hello. I redirected the sait1 page to sait2, everything works, but there was a need for some pages to be available at the old sait1 address. Please tell me how this can be implemented. What I found on google didn't work. My HTACCESS:
# BEGIN WordPress
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) www.sait2.ru/$1 [R=301,L]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
php_value default_charset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml
Answer the question
In order to leave comments, you need to log in
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_URI} !=/page1
RewriteCond %{REQUEST_URI} !=/page2
RewriteCond %{REQUEST_URI} !^/category
RewriteRule (.*) http://www.sait2.ru/$1 [R=301,L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
php_value default_charset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question