RewriteCond fetch array values from Query_String and redirect as url path

Viewed 36
1 Answers

You need to escape [ and ] as those are special regex meta characters:

RewriteCond %{QUERY_STRING} (?:^|&)param1\[\]=([^&]*) [NC]
RewriteRule ^ %{REQUEST_URI}/%1 [QSD,L,R=301]
Related