tags:

views:

59

answers:

4

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?

A: 

Please take a look this thread

S.Mark
A: 

If you're using Apache look at htaccess and mod_rewrite

Joe
Why the downvote?
Joe
+6  A: 

The simplest approach: Call it /bar/index.php

Other approaches include mod_rewrite and ForceType (assuming Apache).

David Dorward
A: 

If you're using apache try adding this to your .htaccess file:

RewriteEngine on
RewriteBase /
RewriteRule ^bar$ bar.php
paperless
It works very well, but how to change every file witch .php extension?
In that case i guess using * instead of 'bar' will work.
paperless