Forum Moderators: phranque
RewriteEngine on
RewriteCond %{REQUEST_URI}!^(.*/index\.php$¦.*/$)
RewriteRule (.*) index.php?page=$1 [L]
RewriteCond %{REQUEST_URI} ^(/$¦$)
RewriteRule (.*) index.php [L]
the code is in www.site.com/dir/.htaccess
i don't know how to fix this...
www.site.com/dir/
does work
but
www.site.com/dir
doesn't
i tried adding it to the top
DirectoryIndex /index.php
RewriteEngine on
RewriteCond %{REQUEST_URI}!^(.*/index\.php$¦.*/$)
RewriteRule (.*) index.php?page=$1 [L]
RewriteCond %{REQUEST_URI} ^(/$¦$)
RewriteRule (.*) index.php [L]
and i tried changing
DirectoryIndex /index.php to
DirectoryIndex index.php
am i doing someting wrong?