Redirect all subfolders to main domain...

Using a single web hosting account to host multiple sites

Redirect all subfolders to main domain...

Postby tthdoc » Sun Jan 06, 2008 9:20 am

I have been trying to figure this out, but everytime I think I found a solution, nothing works. Here is what I want to do.

You have a site name eg.

You have various folders and subfolders eg.

Lets say in file index.html, there are multiple links to various folders and subfolders. I want to set it up so that no matter what link they click on, the URL at the top stays at

For example, say there is link1 in the index page and clicking it takes you to When you click on it, I want the URL not to change, but to still say Same for any link I have now or new ones that may be added in the future.

And if possible, since I am new at this, could you explain what the code is doing so I can learn more as well :D


Posts: 1
Joined: Sun Jan 06, 2008 8:38 am

Postby richardk » Sun Jan 06, 2008 1:11 pm

You can't do that with mod_rewrite. A similar thread.
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 1 guest