Answer the question
In order to leave comments, you need to log in
How to redirect from /?/ to / in htaccess?
I have links like site.ru/news/?/, site.ru/news2/?/?/ , how can I redirect to site.ru/news/ via htaccess?
I tried to write like this, but it doesn't work.
RewriteCond %{REQUEST_URI} ^(.*?)\/\?\/(.*?)$
RewriteRule ^(.*)$ /$0 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question