Categories
How to change path in .htaccess address bar?
Tell me how to change let from /page?action=page1 to /page/page1 , taking into account that page1 changes depending on the GET request.
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} (?:^|&)action=([^&]*) RewriteRule ^(page)$ /$1/%1? [R=301,L]
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question