Click to See Complete Forum and Search --> : .htaccess problem


katten
08-26-2008, 05:05 PM
Well my problem is that i want to convert urls into friendly ones thus removing the .php

so i have my application http://localhost/dev/public_html

and in the public_html folder i have multiple files such as chat.php/index.php/article.php etc

what i want to do is to remove .php from the url

thus having http://localhost/dev/public_html/chat instead of http://localhost/dev/public_html/chat.php

I dont want to write a condition for each page
And i also dont know how many paramters each page might have

LeeU
08-27-2008, 07:58 PM
You can try these tutorials:
http://www.blog.highub.com/apache/remove-file-extension-using-htaccess/
http://spindrop.us/2006/07/26/how-to-remove-file-extensions-from-urls/

katten
08-31-2008, 04:19 AM
Dude thanks i must have been searching with the wrong parameters on google spent the last 2 days trying to find a solution!

katten
08-31-2008, 05:01 AM
Now my problem is when using the examles they showed is that it applies to my css/js files aswell.