I'm trying to do a simple redirect but for some reason it never works. I need this: /dir/script1.php?t-80893.html -> /script2.php?t=80893 and tried: rewrite ^/dir/script1\.php\?t-(.*)\.html$ /script2.php?t=$1 last; but I just get a 404 error. I tried different options but it never works. It's like the ? breaks the whole rewrite rule. Any idea how I can make a redirect like this workby Devile - How to...
![]() |
![]() |
![]() |
![]() |
|