.htaccess issue

Hi there

I wanted my site to have its home page as www.mydomain.com, and every time someone placed www.mydomain.com/index.html on the address bar, it should redirect to www.mydomain.com.

How can I do this?

thanks

It’s also within the server configuration file whether the DirectoryIndex file is displayed. THAT is what the OP is asking - to hide the DirectoryIndex.

Regards,

DK

You can’t do that yourself, you need to ask your hoster if it is enabled, and if not if they can enable it. This information may also be found on their website. Some hosters supply this sort of information, others don’t.

It does what you want, redirect /index.html to /
If it doesn’t work, are you sure .htaccess files are processed on your server and mod_rewrite is enabled?

How do I enable mod_rewrite?

What does this actually do?

As I insert www.mydomain.com/index.html it doesn`t redirect diractly to www.mydomain.com


RewriteEngine On
RewriteRule ^/?index\\.html$ / [L,R=301]

:slight_smile:

Ges,

Search engines take TIME to update their databases so I suspect that they’ve not visited your site since the last update.

Robots, however, obey your directives whenever they feel like it so that may be a different problem for you to consider.

Regards,

DK

Thanks :wink:

Anyway, just one more question.

I`ve set some of my pages with the noindex metatag and with the notranslate and google still shows these options available and indexed… does this take come time or is it instantly on?