Blog de Florent Bertiaux

Au final, le web ce n'est pas si compliqué

You may want to redirect domain A to domain B (main URL):

  • A:
  • B:

Create a .htaccess on your webserver, in the www folder (of domain A):

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ [NC,OR]
RewriteCond %{H...

Here is what I wanted to do: index.html should be the only file visible. Every folder or files should be hidden using .htaccess. That's all.

It's something easy in fact, here's the instruction to redirect any visitor coming from somewhere else than you index (deep link / folders / sub-folders...