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 11-18-2007, 08:36 AM   #1
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
:stop What is the difference between a directory and a subdomain ?

Hi all,

I know this sounds very very lame... however I still would like to know the following.

I know there is a difference between a directory and a sub domain for the purpose of SEO... Now I would like to use .htaccess as to create virtual subdomains... now I understand creating sub domains that you need the wildcard DNS to be established on the DNS side but is it the same when you setup a virtual subdomain using the .htaccess rewrite...

I can create a subdomain the normal way...
I can create a directory ;)

example:

www.prismvod.com/index.html <--- this gets index just fine

www.prismvod.com/member-name/their-site.html (just a directory & not a subdomain) <--- will not get picked up... I will like this to be not just a directory but a virtual sub domain and I don't want to mess with the DNS wild card...


I don't want to create regular sub domains but rather virtual sub domains because I do not have access to setup the wild card on the DNS server...

I am using afraid.org DNS service since my webserver is on a dynamic IP connection...

Since I would like to use a php script as to create virtual sub domains I would also like to know if such needs for the wild card feature on the DNS server to be accessed for the virtual sub domain...

Any how-to advice is welcomed.

Thanks for your interest,

.
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 09:02 AM   #2
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
Before we go any futher, why the fuck is your webserver on a dynamic IP?

For this .htaccess domain.com/blah/ > blah.domain.com redirection, you need two things, a properly configured .htacces for the mod_rewrite, and secondly you'll need wildcard DNS set up.

Last edited by dissipate; 11-18-2007 at 09:03 AM..
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 09:16 AM   #3
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
I find it much easier dissipate to use a dynamic IP and its a bit more secure so hackers do not have a steady IP as to hack... does this answer your question?

I am not looking to set up a regular sub domain! I am looking to set up a virtual sub domain! my question is does the virtual sub domain require the wildcard DNS...

.
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 09:36 AM   #4
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
Quote:
Originally Posted by Balalsubturfyooj View Post
I find it much easier dissipate to use a dynamic IP and its a bit more secure so hackers do not have a steady IP as to hack... does this answer your question?

I am not looking to set up a regular sub domain! I am looking to set up a virtual sub domain! my question is does the virtual sub domain require the wildcard DNS...

.
Are you hosting this server out of your moms basement causing it to have a dynamic IP?

Yes, for "virtual subdomains" you'll need to have wildcard DNS set up, and then redirect through .htaccess
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 09:39 AM   #5
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
I could very well have a static Ip, but why... and your remark is really uncalled for...
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 09:54 AM   #6
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
I'll give you a free clue, web crawlers are notorious for caching DNS records for far longer than they should, which means they may continue attempting to connect to the old IP for weeks. "SEO" and "changing IPs periodically" do not mix.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:01 AM   #7
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
I don't mean to be rude rowan but that is of little use to me if I want to have a site index for a long time...

Does Google index php talkback the same way as a subdomain ? Anyone?

Thanks for your reply.
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:05 AM   #8
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
Quote:
Originally Posted by rowan View Post
I'll give you a free clue, web crawlers are notorious for caching DNS records for far longer than they should, which means they may continue attempting to connect to the old IP for weeks. "SEO" and "changing IPs periodically" do not mix.
Don't tell him that, he's an "SEO Guru" for yappodollars
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:11 AM   #9
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
dissipate, actually I know a fair amount regarding SEO you smart ass... I am seeking to find stuff out that I did not know I did not know...

Perhaps you should get you head out of your ass and get of your high horse.

.
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:13 AM   #10
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
and to close our your question, if you can't enable wildcard DNS to redirect all non-defined subdomain requests to the document root , you cant create virtual subdomains through .htaccess

so sorry, the server hosted in your moms basement on the AOL dialup connection can not do what you need.
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:25 AM   #11
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
balasubturfyooj, once again wtf are you going on about?!
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:30 AM   #12
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
If you cannot read the thread scottybuzz perhaps you should flush yourself down the toilet, again...
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:31 AM   #13
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
Quote:
Originally Posted by Balalsubturfyooj View Post
If you cannot read the thread scottybuzz perhaps you should flush yourself down the toilet, again...
oh i can read alright, i just cant understand jibberish!

Later,
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:51 AM   #14
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
if you want to create sub domains on the fly try something like this

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/$1 [R=301,L]

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


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:55 AM   #15
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
Thanks Fris, just one question... do I need to mess around with the DNS wildcard ?

Thanks for your input !
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:55 AM   #16
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
Quote:
Originally Posted by Fris View Post
if you want to create sub domains on the fly try something like this

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/$1 [R=301,L]

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

Still, wont work without a wildcard DNS record to point the subdomains to the documentroot of the TLD
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 10:56 AM   #17
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
ya you need a wildcard, your host can set it up tho in your apache virtualhost entry just one more parameter to add to serveralias
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 11:46 AM   #18
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
Quote:
Originally Posted by Fris View Post
ya you need a wildcard, your host can set it up tho in your apache virtualhost entry just one more parameter to add to serveralias
Thanks for your time
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2007, 12:35 PM   #19
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,644
Easy. The main difference is that one of them has a cat in it.
The other is cat free.
__________________


👁️ 👍️ 💩
CurrentlySober is online now   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.