
July 2nd, 2012, 03:05 AM
|
|
Contributing User
|
|
Join Date: Apr 2009
Posts: 92
Time spent in forums: 12 h 32 m 51 sec
Reputation Power: 5
|
|
|
Htaccess problem (need your advise for my small problem)
Dear all,
i want to make my links appears without extensions (www.example.com/about) instead of (www.example.com/about.php)
i used this code and it works fine
Quote: RewriteEngine on
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php |
1- but my problem is that i have a folder name contact and a file with the same name (contact.php)
when i click on the link www.example.com/contact it opens the folder not the html file
notice that my website is dynamic and i can not add static links on htaccess files.. i just want to check if there is a folder with the same name just open the original php file not the folder.
2- also for index.php page on my wampserver when i clicked on this link ( http://localhost/ trial/index)
it goes to http://localhost/index/ which is an error.. i want to go to the direct link without removing /trial/
|