How do I make my website go to "/ " and not "/index.html"?

Recommended Answers

All 3 Replies

Sorry I'm in a hurry but basically you should write a 301 redirect using a rewriteRule in .htaccess.
The rule would look something like this:

RewriteRule ^(.*)index\.html$ $1 [R=301,L]

But you have to turn rewrite engine on and may have to apply a condition as well. But that will get you on the path.

Good luck!

with .htaccess

yep. .htaccess will do the trick. you can either use the modrewrite or

Options +FollowSymLinks
DirectoryIndex index.html index.php


Web Design

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.