Answer the question
In order to leave comments, you need to log in
How to set php htaccess options to a readable path?
Good morning everyone!
Paths changed on the site:
/dir/?subdir=123
to
/dir/subdir123
But the following line in .htaccess doesn't work:
RewriteRule ^dir/\?subdir=(.+)$ dir/subdir$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} ^subdir=([0-9]*)$
RewriteRule ^dir$ /dir/subdir/%1 [R=301,L]
Probably something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question