Hi,
I would like to do this:
- go to http://www.example.com/?content=test
- check if http://www.example.com/test is a valid directory
- if not, then redirect to another page
This is my attempt, but doesn't work:
RewriteCond %{QUERY_STRING} ^content=(.+)$
RewriteCond ^/example/${1}/ !-d
RewriteRule ^(.)+$ http://www.example.com/error.php [R,L]
How can I resolve this?
Thanks