Chrisj Posted March 24, 2010 Share Posted March 24, 2010 Is there a way to change www.website.com/newpage.php, so it will appear in a browser as only www.website.com/newpage ? Thanks Link to comment https://forums.phpfreaks.com/topic/196373-how-to-display-wwwwebsitecomnewpage-instead-of/ Share on other sites More sharing options...
ignace Posted March 24, 2010 Share Posted March 24, 2010 You are referring to server-driven content negotiation and if your server supports it (and most do) you should already be able to use it. Link to comment https://forums.phpfreaks.com/topic/196373-how-to-display-wwwwebsitecomnewpage-instead-of/#findComment-1031173 Share on other sites More sharing options...
cags Posted March 25, 2010 Share Posted March 25, 2010 You don't change what appears in the browser, you change what is displayed when sent a request by the browser. Something like this will take requests for www.website.com/newpage and serve www.website.com/newpage.php. RewriteRule ^(.*)$ /$1.php Link to comment https://forums.phpfreaks.com/topic/196373-how-to-display-wwwwebsitecomnewpage-instead-of/#findComment-1031595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.