I have a website composed as follows:
index.php page1.php page2.php page3.php - images image1.jpg image2.jpg - style style.css I want to write an htaccess file which can give me SEO friendly URL. In example:
https://example.com/page2.phpshould behttps://example.com/page2
and also:
https://example.com/page2.php#mytabshould behttps://example.com/page2#mytab
But I would like to apply those rules only on the first directory, so "images" and "style" dirs can continue to be reached using the extensions.
Can somebody help? Thanks
.phpfiles in the document root anyway?