i have a question about mod_rewrite.
this is my static html site architecture created with httrack:
http://www.example.com/index.html
http://www.example.com/example/index.html
http://www.example.com/example1/index.html
http://www.example.com/example2/example/index.html
http://www.example.com/example3/example/example/index.html
i want to hide all index.html in the browser url with mod_rewrite. like:
http://www.example.com/example2/example/
What is the mod_rewrite command for it?
After this action is complete it is necessary to rename my internal links?
Thanks for help 🙂
use the DirectoryIndex in your .htaccess file (from the root/document_root folder)
eg: