

Dan Friedman said:I don't see why you would want to do that..
That would mess up folders, too. If you linked to a folder on your site without the trailing slash it would go to the foldername.php
Dan Friedman said:Yes, so since you don't need an extension to make it PHP, if you went to site.com/folder it would go to folder.php and not the actual folder.
$var_array = explode("/",$PATH_INFO);
$your_var = $var_array[1];
jpm6917 said:Code:<Files page> SetHandler application/x-httpd-php </Files>
Add this to the .htaccess file on the root of your server:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]



