html site in in folder, but I want URL to show root

New to mod_rewrite? This is a good place to start.

html site in in folder, but I want URL to show root

Postby lucadg » Mon Sep 06, 2010 2:02 am

Hi all,
I looked for a solution in the forum but I can't find it.
Easy to explain:

I have an html website in root/minisite

in this folder "minisite" there are a few files like index.html, contact.html etcc...plus a few more.

to access all these files you just need to go to
www.mysite.com/minisite
and all works fine.

But I would like that when people go to
www.mysite.com/minisite/index.htm
they actually see
www.mysite.com/
in the URL.

In the same way
www.mysite.com/minisite/contact.htm
should becomes
www.mysite.com/contact.htm

All the files should still be in root/minisite, I just need to rewrite the URL.

Thanks!!
lucadg
 
Posts: 17
Joined: Sun May 25, 2008 11:29 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron