Our client wants to have 301 redirect for index.html page.
So http://www.website.com/products/index.html will be redirected to http://www.website.com/products/
To achieve this, make sure Apache’s Rewrite module is enabled and then add the following line in /etc/httpd/conf/httpd.conf:
RewriteRule ^/products/index\.html$ /products/ [R=301]
Run /sbin/service httpd reload for it to make effect
Advertisement