I have following requirements which i believe can be accomplished using .htaccess file. Requirements-
Hide Folder names and file extension in URL Eg.
www.example.com/subfolder/subfolder1/file.phpshould becomewww.example.com/fileRestrict Folder browsing - I want to restrict folder browsing capability when somebody fires an URL eg.
www.example.com/subfolderConventionally by firing this URL user will be able to browse through the contents ofsubfolder. By firing such URL or any URL containing domainexample.comeg.www.example.com/folderNotExistthen server should redirect to index page.
I am able to restrict folder browsing but redirection to index page and hiding of folder and file extension is not working.