Answer the question
In order to leave comments, you need to log in
htaccess redirect without specifying php file in browser line?
Good afternoon. I can't figure out how to do a redirect.
You need to redirect links containing the GET parameter 'option' to page 404.
I do this:
RewriteCond %{QUERY_STRING} ^option=(.*)$ [NC]
RewriteRule . - [R=404,L,NC]
Answer the question
In order to leave comments, you need to log in
Try this:
RewriteCond %{QUERY_STRING} ^option=(.*)$ [NC]
RewriteRule ^(.*)$ /? [R=404,L,NC]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question