Reputation: 1
I would like to remove the all the .php extensions from my urls and 301 redirect them to non extension (/).
All urls ending with .php will become /. For example:
www.biluthyrning24.se/albanien/hyrbil.php
automatically redirects to
www.biluthyrning24.se/albanien/hyrbil/
Is this possible in .htaccess
?
Thank you for all replies.
Upvotes: 0
Views: 96
Reputation: 11
Remove the ".htm" The $1 is a variable that holds the match from the group.
Upvotes: 1