bsamson Posted November 17, 2008 Share Posted November 17, 2008 Im sorry if this is the incorrect forum ... but my website is on a dedicated server running cpanel. How do I configure files w/ no extension a php file? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/133065-php-scripts-w-no-extention/ Share on other sites More sharing options...
trq Posted November 17, 2008 Share Posted November 17, 2008 Sorry, I moved this thread to the correct board then completely forgot to come and help. You'll need to use a tool called mod_rewrite. You can do this by simply dropping the following into a .htaccess file in your document root. Note, I havent tested it. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L] Link to comment https://forums.phpfreaks.com/topic/133065-php-scripts-w-no-extention/#findComment-692002 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.