Apache mod_rewrite Example: Forbidding Direct Script Access
We want friendly URL together with forbidding direct script access by using .htaccess.
For example:
1. If the input URL is "hello/iqbalhosan" then Redirect to URL "hello.php?visitor=iqbalhosan"
2. If the input URL is "hello/iqbalhosan/" then Redirect to URL "hello.php?visitor=iqbalhosan"
3. If the input URL is "hello.php" then Redirect to "Error 403: Access forbidden"
and also
4. If the input URL is "hello.php?visitor=iqbalhosan" then Redirect to "Error 403: Access forbidden"
