Answer the question
In order to leave comments, you need to log in
How to setup redirect with mod_rewrite with symbols =, ' ' etc.?
Good afternoon!
There is a link:
http ://somesite. ru /category/view/NDgyMA%3D%3D/fDExfA%3D%3D
You need to set up a redirect to:
https ://somesite. com /category/view/NDgyMA%3D%3D/fDExfA%3D%3D
With these settings in htaccess:
RewriteEngine On
RewriteRule /(.*) https://somesite.com/$1 [B,R=permanent,L]
Answer the question
In order to leave comments, you need to log in
Answer, config:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} \ (/[^\ ]*)\ [NC]
RewriteRule /(.*) https://somesite.com/%1 [NE,R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question