GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   What is the difference between a directory and a subdomain ? (https://gfy.com/showthread.php?t=785471)

yahoo-xxx-girls.com 11-18-2007 08:36 AM

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,:thumbsup

.

dissipate 11-18-2007 09:02 AM

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.

yahoo-xxx-girls.com 11-18-2007 09:16 AM

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...

.

dissipate 11-18-2007 09:36 AM

Quote:

Originally Posted by Balalsubturfyooj (Post 13387077)
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? :winkwink:

Yes, for "virtual subdomains" you'll need to have wildcard DNS set up, and then redirect through .htaccess

yahoo-xxx-girls.com 11-18-2007 09:39 AM

I could very well have a static Ip, but why... and your remark is really uncalled for...

rowan 11-18-2007 09:54 AM

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.

yahoo-xxx-girls.com 11-18-2007 10:01 AM

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.

dissipate 11-18-2007 10:05 AM

Quote:

Originally Posted by rowan (Post 13387149)
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 :winkwink:

yahoo-xxx-girls.com 11-18-2007 10:11 AM

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.

.

dissipate 11-18-2007 10:13 AM

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.

scottybuzz 11-18-2007 10:25 AM

balasubturfyooj, once again wtf are you going on about?!

yahoo-xxx-girls.com 11-18-2007 10:30 AM

If you cannot read the thread scottybuzz perhaps you should flush yourself down the toilet, again...

scottybuzz 11-18-2007 10:31 AM

Quote:

Originally Posted by Balalsubturfyooj (Post 13387238)
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,

fris 11-18-2007 10:51 AM

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]

yahoo-xxx-girls.com 11-18-2007 10:55 AM

Thanks Fris, just one question... do I need to mess around with the DNS wildcard ?

Thanks for your input !

dissipate 11-18-2007 10:55 AM

Quote:

Originally Posted by Fris (Post 13387299)
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

fris 11-18-2007 10:56 AM

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

yahoo-xxx-girls.com 11-18-2007 11:46 AM

Quote:

Originally Posted by Fris (Post 13387324)
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 :)

CurrentlySober 11-18-2007 12:35 PM

Easy. The main difference is that one of them has a cat in it.
The other is cat free.


All times are GMT -7. The time now is 01:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123