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 Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.