Answer the question
In order to leave comments, you need to log in
How to remove parameters when redirecting?
You need to redirect from the page
https://site.ru/blog?start=19
to the page
https://drugoysite.ru/blog/
Rule
RewriteCond %{THE_REQUEST} \s/+blog?start=19[?\s/] [NC]
RewriteRule ^ https://drugoysite.ru/blog/ [L,R=301]
Answer the question
In order to leave comments, you need to log in
Option 1. On the site from which you want to redirect, write in the .htaccess file:
Redirect 301 /blog/ https://drugoysite.ru/blog/
where /blog/ is the page that you want to redirect to the page https://drugoysite.ru/blog/
Option 2. Again, in the .htaccess file on the site with which we configure redirection we write:
RewriteCond %{REQUEST_URI} ^/blog/$
RewriteRule ^.*$ https://drugoysite.ru/blog/? [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question