- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^(.+)$ view.php?f=$1 [QSA,L]
when i do domain.com/dir it gives 400 bad request, but domain.com/dir/ is fine.
I want it to ignore index.php and do view.php?f=filename for everything else, view.php shows source code for the file clicked in an open directory.
[/code]