We recently made some changes for better SEO by removing “index.html” from the ends of many of the links in navigation sections of the web templates. The reason behind this update is to unify the URL patterns across our HTML pages, sitemap, and Google indexes. Why does this matter?
Search engines prefer clean URLs that are easy for users to read and remember. Removing unnecessary parts like “index.html” can help improve our site’s search engine ranking and overall user experience.
In support of this, we’ve updated approximately 200 destination URLs in our main redirects file to remove “index.html.” If you’re adding redirects to your sites or subdirectories in the future, make sure to exclude “index.html” from the destination URL.
Here’s an example of the right and wrong way to set it up:
Incorrect:
RedirectMatch (?i)^/acrec https://www.clemson.edu/public/acrec/index.html
Correct:
RedirectMatch (?i)^/acrec https://www.clemson.edu/public/acrec/
Important Note: It’s still acceptable to include “index.html” in the source URL (the first URL column), if you need to target it specifically. For example:
RedirectMatch (?i)^/acrec/index.html https://www.clemson.edu/public/acrec/
By following this practice, you’ll help ensure our URLs are SEO-friendly and look a little nicer too!