Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-16-2006, 12:05 PM   #1
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
sub-domain vs. sub-folder

which and why?

please share your experiences...
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 12:08 PM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,480
sub folder, if you want to do sub domains on the fly their is a cool trick.

edit your domain zone file

add

* IN A domainip

then you could use .htaccess to create them based on the sub domain

Options +FollowSymLinks

RewriteEngine On

# mod_dir fix
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(.*\.)?([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ http://%2.domain.com%{REQUEST_URI}/ [R=301,L]

# strip sub subdomains
RewriteCond %{HTTP_HOST} ^.*\.([^\.]+\.domain\.com)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,L]

# abc.domain.com --> /subs/abc/
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
RewriteRule ^(.*)$ /subs/%1%{REQUEST_URI} [QSA,L]
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 12:13 PM   #3
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by Fris View Post
sub folder, if you want to do sub domains on the fly their is a cool trick.

edit your domain zone file

add

* IN A domainip

then you could use .htaccess to create them based on the sub domain

Options +FollowSymLinks

RewriteEngine On

# mod_dir fix
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(.*\.)?([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ http://%2.domain.com%{REQUEST_URI}/ [R=301,L]

# strip sub subdomains
RewriteCond %{HTTP_HOST} ^.*\.([^\.]+\.domain\.com)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,L]

# abc.domain.com --> /subs/abc/
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
RewriteRule ^(.*)$ /subs/%1%{REQUEST_URI} [QSA,L]
great tip

what advantage do i have using a sub-folder instead of a sub-domain?
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 12:32 PM   #4
LiveDose
Show Yer Tits!
 
LiveDose's Avatar
 
Industry Role:
Join Date: Feb 2002
Location: Somewhere Out there...
Posts: 25,792
Interesting trick.
__________________

Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal
LiveDose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 10:43 PM   #5
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
bump for more information.
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 10:59 PM   #6
DateDoc
Outside looking in.
 
DateDoc's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: To Hell You Ride
Posts: 14,243
I use mod rewrite to create sub domains but that was to create url/city_id=1 to albany-ny.url, etc.
__________________
DateDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 10:59 PM   #7
fetishblog
Confirmed User
 
Join Date: Sep 2005
Location: Your mom is my favorite pornstar!#%
Posts: 5,995
Google loves subdomains more then subfolders. =)
__________________

Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!
fetishblog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 11:07 PM   #8
gooddomains
Too lazy to set a custom title
 
Join Date: Jul 2003
Location: Netherlands
Posts: 10,127
subdomains are better than subfolders
gooddomains is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2006, 11:12 PM   #9
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by fetishblog View Post
Google loves subdomains more then subfolders. =)
how about the other search engines?

Quote:
Originally Posted by gooddomains View Post
subdomains are better than subfolders
why?
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2006, 10:53 AM   #10
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
bump bump
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 12:05 PM   #11
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 12:11 PM   #12
VexXxed
Confirmed User
 
Join Date: Sep 2006
Location: What Bitch?
Posts: 544
How bout sub-domains on seperate class-c's with sub-folders! yowzas!!!
__________________
VexXxed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 12:50 PM   #13
CaptainHowdy
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 94,301
Quote:
Originally Posted by fetishblog View Post
Google loves subdomains more then subfolders. =)
!!
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

Windows VPS now available
Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 01:22 PM   #14
ae-sc
Confirmed User
 
Join Date: Sep 2006
Location: the coast ICQ:359-484-875
Posts: 507
subdomains are viewed as separate sites whereas folders are divisions within a site.
__________________

Unlimited Domains, DNS Wild Cards, Unlimited POP3 Accounts,
Unlimited Email Forwarding, Full CGI And Perl Access, PHP/MySql


As Always, 1/2 Price DreamHost Accounts (Adult Friendly) using the Code "SLASHHALF"
ae-sc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 01:38 PM   #15
karlcore
Confirmed User
 
Join Date: Jul 2006
Location: www.derangedworld.net
Posts: 134
Quote:
Originally Posted by fetishblog View Post
Google loves subdomains more then subfolders. =)
Do you have proof of this? perhaps a source to cite?
__________________
Always looking for hard link trades:
http://www.derangedworld.net

ICQ: 277163851
AOL/Yahoo/ MSN/GoogleTalk IM: e-mail me first to be added
karlcore is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:03 PM   #16
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,428
Google use to love them... Things changed when someone made 5 BILLION subdomains and Google decided to switch things up a bit.
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:13 PM   #17
The Sultan Of Smut
Confirmed User
 
The Sultan Of Smut's Avatar
 
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
Quote:
Originally Posted by V_RocKs View Post
Google use to love them... Things changed when someone made 5 BILLION subdomains and Google decided to switch things up a bit.
Yup I've heard this too. Apparently - don't quote me on this - 3rd level subdomains (sub.domain.com) aren't viewed as very cool by Google but 5th level subdomains (sub3.sub2.sub.domain.com) are cheat worthy.
The Sultan Of Smut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:15 PM   #18
BitAudioVideo
Confirmed User
 
Join Date: Jul 2005
Location: USA, Georgia
Posts: 1,246
errr
why not just put the junk in somedomain.com/sub1
and make sub1.somedomain.com point there
2 birds...
__________________
Hi-Quality Encoding - Bulk Orders - On Time!
http://bitaudiovideo.com
icq 50476697 - aim n3r0xXx
BitAudioVideo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:16 PM   #19
marketsmart
HOMICIDAL TROLL KILLER
 
Industry Role:
Join Date: Dec 2004
Location: Sunnybrook Institution for the Criminally Insane
Posts: 20,419
good information in here
marketsmart is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:16 PM   #20
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
I always use subdomains, just because it is easier on bookmarkers

I always place each subdomain on it's own class c ip also
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:17 PM   #21
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by BitAudioVideo View Post
errr
why not just put the junk in somedomain.com/sub1
and make sub1.somedomain.com point there
2 birds...
cpanel does that already, it is kind of nice
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:38 PM   #22
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by fetishblog View Post
Google loves subdomains more then subfolders. =)
Google et al couldn't give a shit. Stop spreading FUD.

There are no 'advantages' to using subfolders over subdomains. Quite the reverse - in a subdomain setting, you can hard code the url from the TLD and still end up at the subdomain, whereas you will NEVER get to a subdomain from the TLD....
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 03:45 PM   #23
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Fris View Post
sub folder, if you want to do sub domains on the fly their is a cool trick.

edit your domain zone file

add

* IN A domainip

then you could use .htaccess to create them based on the sub domain

Options +FollowSymLinks

RewriteEngine On

# mod_dir fix
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(.*\.)?([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ http://%2.domain.com%{REQUEST_URI}/ [R=301,L]

# strip sub subdomains
RewriteCond %{HTTP_HOST} ^.*\.([^\.]+\.domain\.com)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,L]

# abc.domain.com --> /subs/abc/
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
RewriteRule ^(.*)$ /subs/%1%{REQUEST_URI} [QSA,L]
I may be wrong, but this rewrite will cause any Mac Safari users to balk with the "Too many redirects" error (Safari wil balk on 3+ internal redirects)
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 09:13 PM   #24
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by BitAudioVideo View Post
errr
why not just put the junk in somedomain.com/sub1
and make sub1.somedomain.com point there
2 birds...
sure, but which one would you use to trade links? for seo?...
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 09:43 PM   #25
ThatGuy25
Registered User
 
Join Date: Sep 2006
Posts: 4
Use sub-folders if possible. Sub-domains are frowned upon by guys like Google, and other search engines.

Only reason you should be using sub-domains is for type-in domains that your customers can easily remember.
ThatGuy25 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2006, 11:11 PM   #26
Kevsh
Confirmed User
 
Join Date: Dec 2004
Location: TO
Posts: 8,619
Quote:
Originally Posted by borked View Post
Google et al couldn't give a shit. Stop spreading FUD.

There are no 'advantages' to using subfolders over subdomains. Quite the reverse - in a subdomain setting, you can hard code the url from the TLD and still end up at the subdomain, whereas you will NEVER get to a subdomain from the TLD....
Sub-domains still are considered by Google and others to be separate sites, but as pointed out above, they are wiser is spotting abuses.

Sub-folders are better if you are building a hierarchy of related pages on the same main theme.

So, if you have a TLD and want to spin-off some new sites (and you can leverage the PR and authority of the www domain), sub-domains can get you plenty of SE traffic ... if you want to build a deep, solid, themed site where pages all help your PR, etc. then use sub-directories.
Kevsh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2006, 12:25 AM   #27
chaze
Confirmed User
 
chaze's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 9,765
Definably just use a folder, eventually sub.domains will be outdated.

dwhs.com/support/

is much better then

support.dwhs.com

Comercials and ads are showing the folder way now as well.
__________________
Welcome to the future of the past
$20/yr Website Builder $95/mo Managed Servers
https://adult-website-hosting.com/ Since 2001
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2006, 01:27 AM   #28
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
if i plan several sites on the same domain (blog, forum, site, galleries...) they should be theoreticly different sites...
would the SE know that when these are placed in folders (domain.com/blog, domain.com/forum...)?
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.