Page 1 of 1

.htaccess problem

Posted: Sun Oct 30, 2011 12:11 pm
by ady1
Hey guys, do you know how to change the structure of the URL using .htaccess. For exemple :

- www.mysite.com/index.php to www.mysite.com/index/
- www.mysite.com/contact.php to www.mysite.com/contact/
- www.mysite.com/about.php to www.mysite.com/about/

Re: .htaccess problem

Posted: Tue Nov 08, 2011 9:05 am
by Josh
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([^\.]+)$ $1.php [NC,L]