Creating a subdomain

  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 5:33 pm

how do i FTP to a subdomain I have created?
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 30th, 2003, 5:33 pm

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 30th, 2003, 6:31 pm

you don't ftp to it, you ftp to your normal domain, the subdomain is just a shortcut to a directory. For instance:

http://bro.acgcny.com

and

http://www.acgcny.com/bro

are the same things.
Pixel Acres V2
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 6:39 pm

really? oh! I am going to test it out!
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 30th, 2003, 6:50 pm

don't forget you have to set up the redirect in the .htaccess file with:

Code: [ Select ]
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} bro.acgcny.com
RewriteCond %{REQUEST_URI} !bro/
RewriteRule ^(.*)$ bro/$1 [L]
  1. RewriteEngine On
  2. Options +FollowSymlinks
  3. RewriteBase /
  4. RewriteCond %{HTTP_HOST} bro.acgcny.com
  5. RewriteCond %{REQUEST_URI} !bro/
  6. RewriteRule ^(.*)$ bro/$1 [L]
Pixel Acres V2
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 7:00 pm

b_heyer wrote:
don't forget you have to set up the redirect in the .htaccess file with:

Code: [ Select ]
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} bro.acgcny.com
RewriteCond %{REQUEST_URI} !bro/
RewriteRule ^(.*)$ bro/$1 [L]
  1. RewriteEngine On
  2. Options +FollowSymlinks
  3. RewriteBase /
  4. RewriteCond %{HTTP_HOST} bro.acgcny.com
  5. RewriteCond %{REQUEST_URI} !bro/
  6. RewriteRule ^(.*)$ bro/$1 [L]



*blank look*

umm do I copy that into a txt file or something and put it in there?
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 30th, 2003, 7:02 pm

Yeah, copy that into a text file using something like notepad. Then name the file .htaccess

Windows might not let you name the file that so you might just name it htaccess.txt and then upload it to your server. Once uploaded on your server change the name of the file to .htaccess or it will not work.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 7:09 pm

i am so lost :shock:

my hosting says I get unlimited subdomains yet in my management area there is nowhere to create one. Is that what I have to do?

sorry to hijack the thread but it is the same topic, kinda :wink:
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 30th, 2003, 7:14 pm

ok:

Create a file called ".htaccess"
You may have to create ".htaccess.txt" first, then take the ".txt" off after you upload it to your server.

Anyways, in this file place the above code I gave you, replacing the "bro.acgcny.com" with "yoursubdomain.yourdomain.yourlastthingy".

And "bro/" with "yourdirectory/" in both instances.

Save the file
then follow the steps I stated for getting rid of the .txt once uploaded, it needs to go in your root (htdocs) directory.
Pixel Acres V2
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 7:20 pm

okey dokey roger that, however do I need to create a subdomain name in my hosting management thingy?
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post September 30th, 2003, 9:21 pm

there's a few ways hosts do this, as I've ran into it a few times.

some hosts use usernames to automatically create subdomains. So, if
you create a new user called rose, it would automatically create a
subdomain rose.domain.com for you. You would login to it seperately,
using the rose username and password actually.

others i have seen do it like b_heyer said, but the htaccess was already
written, and all that was needed was a directory created.
UNFLUX.FOTO
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post September 30th, 2003, 9:34 pm

ive tried it a million different ways and it doesnt work, not ta worry its not an urgent thing and I am changing hosting companies in a few weeks.
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • phaugh
  • Professor
  • Professor
  • User avatar
  • Joined: Sep 30, 2003
  • Posts: 796
  • Status: Offline

Post September 30th, 2003, 10:54 pm

I can't get it to work either....more info

please...please...please...please
Mt .htaccess file dissappears when I rename it. Is that supposed to happen. I also get a http 501 not implemented when I try to access the subdomain. Does that mean my host doesn't support it?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 30th, 2003, 11:37 pm

Your .htaccess file disappears after you upload because you need to make it so your ftp program doesn't hide files that start with a period. FTP programs like WS_FTP hide files that start with a period by default because it considers then hidden files. Anyway you can change this setting so you can see .htaccess files on your server. Goto this thread to learn more:

http://www.ozzu.com/viewtopic.php?t=991
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Joined: Aug 06, 2003
  • Posts: 6892
  • Loc: up a tree
  • Status: Offline

Post October 1st, 2003, 4:09 pm

LOL@ making my post the top question hahaaaa
Opportunity To Do - Changing the lives of children around the world.
Rose.id.au - Doing Life.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post October 1st, 2003, 4:10 pm

I'm sorry, I was just trying to seperate the 2 conversations. :P
UNFLUX.FOTO
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 1st, 2003, 4:10 pm

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 23 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.