seany123 Posted May 17, 2011 Share Posted May 17, 2011 Please can someone point me into the right direction on how to remove the .html extension 1 OR all of my pages... also is is possible to remove the current page aswell? so address bar just shows eg "http://www.example.com/folder/" Quote Link to comment https://forums.phpfreaks.com/topic/236654-how-to-remove-html-extension-from-address-bar/ Share on other sites More sharing options...
cssfreakie Posted May 17, 2011 Share Posted May 17, 2011 you need mod_rewrite for that assuming you run on apache. : http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html there are quite some topics about this on this forum. just search for mod_rewrite. Anyway the link i gave has an example with a .html extension Quote Link to comment https://forums.phpfreaks.com/topic/236654-how-to-remove-html-extension-from-address-bar/#findComment-1216571 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.