UWRP Posted September 7, 2020 Share Posted September 7, 2020 Hi everyone, We're new here at the forums so I apologize if this is posted in the wrong section. We are trying to hide .php extensions from our web url. Example: We want to change .com/page.php into .com/page I have tried creating a .htaccess file with this content but it is not working: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] What are we doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/311443-hide-php-extension-of-pages-in-browser/ Share on other sites More sharing options...
UWRP Posted September 7, 2020 Author Share Posted September 7, 2020 We have fixed this with apache settings. Quote Link to comment https://forums.phpfreaks.com/topic/311443-hide-php-extension-of-pages-in-browser/#findComment-1581209 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.