Forum Moderators: phranque

Message Too Old, No Replies

.htaccess file for sub site

         

amos

8:08 pm on Apr 3, 2008 (gmt 0)

10+ Year Member



Hi. I have a website (apache server) and I want to "park" another site on top of it.

I have been told the .htaccess file- properly set up will allow viewer to bypass the initial site and go to this different site.

If I can figure this out it will save me $60.00 /yr. The new one is fairly small.

Anybody out there that can help me with the code for this I would greatly appreciate.

thanks so

g1smd

8:58 pm on Apr 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You'll need a rewrite. There's example code in many prior threads.

Post you best effort code here if you can't get any of the examples working.

amos

2:29 pm on Apr 4, 2008 (gmt 0)

10+ Year Member



Thanks for your reply. It appears that all those earlier threads have to do with "rerouting" due to error. I still want the main webiste to come up when its ips is typed and then this new one to come up with no evidence of the initial site.

Is this what the code will do?

Also in my root dir. sits currently index.html - the new site would have a competing index file. So would I have to place the orig, site inside a file and then have its index or home file in that? THen I guess do the same for the new "sub" site. ? Just how is this part organized.

thanks for your help.

jdMorgan

5:27 pm on Apr 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code posted in this currently-active thread [webmasterworld.com] can easily be modified to do an internal rewrite, if that's what you want. Please take a look around here at our forum charter and in our library (links at the top of every page here). This will save everyone an awful lot of work re-hashing of the same questions, day to day.

Thanks,
Jim