As in title. I want to run example.com/bar.php by using example.com/bar as adress, but it doesn't wrong. How to set it?
views:
59answers:
4Why the downvote?
Joe
2010-01-24 15:23:31
+6
A:
The simplest approach: Call it /bar/index.php
Other approaches include mod_rewrite and ForceType (assuming Apache).
David Dorward
2010-01-24 15:20:40
A:
If you're using apache try adding this to your .htaccess file:
RewriteEngine on
RewriteBase /
RewriteRule ^bar$ bar.php
paperless
2010-01-24 15:23:08