Answer the question
In order to leave comments, you need to log in
Why does .htaccess redirect give 404?
There is a correctly working redirect from the pages
www.domain.ru/advert.php?id=11 to www.domain.ru/advert/11
RewriteCond %{THE_REQUEST} advert\.php\?id=([0-9]+)\ HTTP/
RewriteRule ^advert\.php$ http://www.domain.ru/advert/%1? [R=301,L]
RewriteCond %{THE_REQUEST} index\.php\?mod=daily\ HTTP/
RewriteRule ^index\.php$ http://www.domain.ru/daily_rent? [R=301,L]
Answer the question
In order to leave comments, you need to log in
Solution:
K in addition to the redirect
RewriteCond %{THE_REQUEST} index\.php\?mod=smth\ HTTP/
RewriteRule ^index\.php$ http://www.domain.ru/smth? [R=301,L]
RewriteRule ^smth/?$ /index.php?mod=smth[QSA,L]
www.domain.ru/index.php?mod=daily what does it show?
More precisely, how strange you described the problem.
You need
from www.domain.ru/index.php?mod=smth to www.domain.ru/smth
www.domain.ru/smthsuch a page exists
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question