Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End .htaccess friendly url Re: .htaccess friendly url

#135761
unasAquila
Participant

i use

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]

and have never had problems

but `RewriteCond %{REQUEST_FILENAME} !-f` is doing exactly what it is supposed to do if the file dose not exist then rewrite to `index.php` if you want everything to point to `index.php` then remove `RewriteCond %{REQUEST_FILENAME} !-f` and `RewriteCond %{REQUEST_FILENAME} !-d `.