hi, i need to rewrite my urls for sef/seo. i already does that but was some time ago and i don´t remember how... want i need to do is when a user enter this links: www.teste.com/name the apache is working with this url: www.teste.com/index.php?folder=name i know that i need change the htacess but i don´t remember what i need to change thanks a lot for your help
I would put this in the .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?folder=$1 This way it will only rewrite if the file or folder don't exists, sometimes you want to be able to access files or folder directly.