I need help optimizing my .htaccess to automaticall redirect all pages in a certain directory to the root domain without extension.
I've several pages inside the directory www.example.com/p
,
I need to redirect all pages like www.example.com/p/about.html
to www.example.com/about
.
Can this be done in a few lines in my htaccess without having to add every single page to htaccess
Thank you in advance