Creating a subdomain

  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

how do i FTP to a subdomain I have created?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

really? oh! I am going to test it out!
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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]
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

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?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

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:
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

okey dokey roger that, however do I need to create a subdomain name in my hosting management thingy?
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

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.
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

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.
  • phaugh
  • Professor
  • Professor
  • User avatar
  • Posts: 796

Post 3+ Months Ago

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
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

LOL@ making my post the top question hahaaaa
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

I'm sorry, I was just trying to seperate the 2 conversations. :P
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

:wink:

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 25 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.