aebstract Posted September 29, 2007 Share Posted September 29, 2007 Hey guys, I haven't posted here in a few months, kinda been out of the business a little but getting back in to it. Well I am trying to make url's such as: www.something.com/about_us.php be able to display in the browser like: www.something.com/about_us and still run the page about_us.php. Here is what I have for the .htaccess; RewriteEngine On RewriteBase / RewriteRule ^([0-9]+)/$ /$1.php Any help much appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/71186-rewrite-quicky/ Share on other sites More sharing options...
marcus Posted September 29, 2007 Share Posted September 29, 2007 RewriteRule ^([^-]*)$ $1.php [L] Quote Link to comment https://forums.phpfreaks.com/topic/71186-rewrite-quicky/#findComment-358064 Share on other sites More sharing options...
aebstract Posted September 29, 2007 Author Share Posted September 29, 2007 When I do that, I get this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, markscott1962@bellsouth.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Quote Link to comment https://forums.phpfreaks.com/topic/71186-rewrite-quicky/#findComment-358066 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.