PDA

View Full Version : How do I make a http://newsite.currentdomain.com?


camino81
3-6-03, 03:21 PM
I am a new user. I want to know how to save/upload a "sub-web" under my URL. For example, my domain name is www.lotsurfer.com--I want to save a different site as http://different.lotsurfer.com. If someone could either explain how to do this or simply direct me to a page here that explains the process, I'd be very grateful. Thanks!

Also, I use FrontPage2000.


JT

cashique
3-6-03, 03:42 PM
create a file called .htaccess in your htdocs directory, if you don't already have one.

then type the following in the file

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} subdom.domain.com
RewriteCond %{REQUEST_URI} !dir_name/
RewriteRule ^(.*)$ dir_name/$1 [L]

thats it, now, http://subdom.domain.com will point to a directory called dir_name in your htdocs. You can add as many of those lines as you want starting with RewriteCond

You can find a more comprhensive tutorial in the scirpting area i think.

Starr
3-6-03, 03:44 PM
There are tutorials for this at http://help.powweb.com.

RocketJeff
3-6-03, 03:48 PM
Originally posted by camino81
Also, I use FrontPage2000.
This is your sticking point. If you publish through FrontPage, don't do anything to the .htaccess files on your site if you don't know what you're doing.

FrontPage writes information to .htaccess and you can possibly cripple your site if you do it wrong.

Hopefully one of the FrontPage experts will be around shortly to help you with this. Me, I stay as far away from FrontPage as I can - mainly because of things like this.

Calash
3-6-03, 04:12 PM
You cna do subdomains with frontpage, but it requires disabling frontpage extensions and using frontpage publish as a FTP. This way Frontpage acts as a simple HTML editor and does not include all of it's extras.

I have read a few people who have gotten it to work by being careful and formatting the .htaccess correctly, but it never worked for me.