Why redirect to the home? Where is the error?

There is a way mysite.ru/news?limitstart=0
need to get rid of ?limitstart=0

Try:
RewriteCond %{QUERY_STRING} ^limitstart=0$
RewriteRule ^news http://mysite.ru/news? [R=301,L]

But redirects to home instead of /news
July 8th 19 at 15:24
2 answers
July 8th 19 at 15:26
Solution
Earned this option
RewriteCond %{QUERY_STRING} (^|&)limitstart=0($|&)
RewriteRule ^news$ /news? [L,R=301]
July 8th 19 at 15:28
RewriteCond %{QUERY_STRING} ^limitstart=0$
#if get request
RewriteCond %{REQUEST_URI} ^news=0$
# And news
RewriteRule ^.* http://mysite.ru/news? [R=301,L]

Otherwise you have a cycle
with your choice directed to the
mysite/news/?limitstart=0 - virgie_Ledn commented on July 8th 19 at 15:31
don't have a question at the end have to kill the Geth - Lavern_Schuppe commented on July 8th 19 at 15:34

Find more questions by tags htaccessJoomla