|
htaccessThis is a very basic .htaccess file as I like to use it. It simply redirects any request to the index.php if it's not an existing file and not an existing directory. <IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/? /index.php?loc=$1
</IfModule>
It works as follows:checks to see if mod-rewrite is enabled There are lots of more complicated things you can do, but this is what I need more often and it does only the thing I need... which is good. |
Swedish proverb
När man talar om trollen så står de i farstun och lyssnar When you´re speaking about the trolls, they´re standing in the entrance hall and listen |