.htaccess problem

Any help topics that don't fit in the current categories can go here.
Post Reply
ady1
Posts: 3
Joined: Tue Sep 13, 2011 11:15 pm

.htaccess problem

Post 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/
Josh
Posts: 38
Joined: Tue Oct 11, 2011 9:31 pm

Re: .htaccess problem

Post by Josh »

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

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