0

So for example, if I type in www.website.co.uk/section.php, I want it to automatically load as www.website.co.uk/section. I know how to perform a URL rewrite in that if I type in www.website.co.uk/section, www.website.co.uk/section.php will load but I have so many .php links across my website that I wondered if I can do it the former way somehow to save time?

Matt
  • 91
  • 3
  • 10
  • Yes, it is known as pretty URLs, search it up. [Here](https://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess). – Script47 Aug 29 '17 at 10:20
  • Thank you very much, I have been searching but wasn't sure what to look for. – Matt Aug 29 '17 at 10:21
  • Well you know it is to do with `.htaccess` and you know you want to remove the `.php`, so: *Remove file extension .htaccess php* would make sense. – Script47 Aug 29 '17 at 10:22
  • Yes I guess it would. – Matt Aug 29 '17 at 10:23

0 Answers0