PDA

View Full Version : *!*.youraddress.com


soviet
5-1-02, 11:05 PM
how do i get *!*.youraddess.com 's?

make another ftp access with the name i want to be first?
ftp login: bob

bob.youraddress.com?

MannInc
5-1-02, 11:11 PM
Ok, you talking about two seperate issues.

Issue #1: FTP can be setup with a subfolder under the htdocs folder, such as a folder like bob.

Issue #2: bob.yoursite.com is a subdomain. In order to set this up, you can use the Subdomain Tutorial at the U.P.S. site.

Hope this helps!

Cash
5-2-02, 07:06 AM
Could you just clarify something in your tutorial about how to set up the subdomain in the .htaccess file?

For these lines:

RewriteCond %{HTTP_HOST} sub.yoursite.com
RewriteCond %{REQUEST_URI} !sub/
RewriteRule ^(.*)$ sub/$1 [L]

If I wanted the subdomain "ac" do I make the 3 edits look like:

ac.mysite.com
!sub/ac
sub/ac$1

Or is it a different set up? I'm interested in having a subdomain or two on my site, and I've already set up the CNAMES I want to have in preparation to do this. I'm just not sure on the actual way to edit the file :)

Thanks for any help, and btw I want to say your unofficial tutorials are a great help!

MannInc
5-2-02, 10:50 AM
Originally posted by Cash
Could you just clarify something in your tutorial about how to set up the subdomain in the .htaccess file?

For these lines:

RewriteCond %{HTTP_HOST} sub.yoursite.com
RewriteCond %{REQUEST_URI} !sub/
RewriteRule ^(.*)$ sub/$1 [L]

If I wanted the subdomain "ac" do I make the 3 edits look like:

ac.mysite.com
!sub/ac
sub/ac$1

Close. It would actually be as follows:

RewriteCond %{HTTP_HOST} ac.yoursite.com
RewriteCond %{REQUEST_URI} !ac/
RewriteRule ^(.*)$ ac/$1 [L]

This is because you'd be substituting ac where you see the word sub. Just a little play on word fun here :)

Hope this helps!

Cash
5-2-02, 07:28 PM
Ahhhhhh! I thought that the "!sub" was a command hehe :)

Thanks very much for clarifying that sir!

MannInc
5-2-02, 07:48 PM
Nope. That's the subfolder line. It basically checks to make sure they're not accessing the folder directly, such as yoursite.com/sub

Atomic-Design
5-3-02, 12:53 AM
So this takes ac.domain.com and forwards it to domain.com/ac? How do I make it forward to something else, like evil/forum?