Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

1st of all the disclaimer: this is my very first "meeting" with .htaccess, and I'm not a sysadm, never was, but the guy in the neighborhood, who used to set up the machine.

So now I have to set up one friends cgi (pyblosxom) based site (on freehostia).

I have a directory tree like this:

mysite (path on freehostia is: /home/www/sitename)

My problem: I want to redirect all incoming request to (the root, and if possible and ) to .

Could someone explain how to do that? All my tries lead to infinite redirections.

share|improve this question
up vote 3 down vote accepted

Try to put in a .htaccess file in the mysite directory :

RedirectMatch ^/$
RedirectMatch ^/data/
RedirectMatch ^/pybloxsom-installation/

it might not work if your hosting provider doesn't allow it.

share|improve this answer
Problem solved, thank You very much! – Zsolt Botykai Sep 4 '09 at 11:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.