S
S
scr1pi2019-08-14 12:42:16
htaccess
scr1pi, 2019-08-14 12:42:16

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

1 answer(s)
D
dodo512, 2019-08-14
@ml_Sasha

RewriteCond %{QUERY_STRING} (?:^|&)action=([^&]*)
RewriteRule ^(page)$ /$1/%1? [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question