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)
-   -   Hosting tech question: (https://gfy.com/showthread.php?t=704996)

uno 02-10-2007 12:20 PM

Hosting tech question:
 
How can I make subdirectories on a domain act like subdomains?

ex. blah.com/bleh = bleh.blah.com

baddog 02-10-2007 12:22 PM

ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.

uno 02-10-2007 12:25 PM

Quote:

Originally Posted by baddog (Post 11894757)
ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.

That would be a whole shitload of subdomains.

baddog 02-10-2007 12:26 PM

Quote:

Originally Posted by uno (Post 11894774)
That would be a whole shitload of subdomains.

and . . . ?

GrouchyAdmin 02-10-2007 12:28 PM

Quote:

Originally Posted by uno (Post 11894774)
That would be a whole shitload of subdomains.

Also, obnoxious as fuck, and an obvious action of someone who doesn't know what the fuck they want to do, or how to do it. You'll want to use mod_rewrite.

This thread will assist in learning the craziness of mod_rewrite.

Brujah 02-10-2007 01:36 PM

Quote:

Originally Posted by baddog (Post 11894757)
ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.

and you call yourself an SEO host... :1orglaugh :1orglaugh :1orglaugh

baddog 02-10-2007 01:53 PM

Quote:

Originally Posted by Brujah (Post 11895060)
and you call yourself an SEO host... :1orglaugh :1orglaugh :1orglaugh

Because I haven't seen anyone make a subdirectory come up as a subdomain? It isn't something we do, and I have never had a client ask me how to do it.

That doesn't mean I am not investigating the possibility.

Spudstr 02-10-2007 02:16 PM

could always setup a vhost..

<VirtualHost xxx.xxx.xxx.xxx>
UseCanonicalName off

VirtualDocumentRoot /home/somewhere/www/&#37;1.0.%3.0
</VirtualHost>

that should map subdomains to folders, you can replace the %1.0 with %2.0 if you want to use domain.com atleast this is the way it should work. pulling this from a config wher esomeone has hundreds of folders and all on one ip and hundres of domains each domain is domain1.com ect.. they use the %2.0 instead of %1.0

htaccess can do it too..

BigBen 02-10-2007 02:43 PM

.htaccess.

Smokey made a post a few months ago(?) on how to do exactly that.

uno 02-10-2007 03:39 PM

Quote:

Originally Posted by BigBen (Post 11895282)
.htaccess.

Smokey made a post a few months ago(?) on how to do exactly that.

Thanks, I'll look for that and hit him up on icq.

Superterrorizer 02-10-2007 03:43 PM

Quote:

Originally Posted by uno (Post 11894739)
How can I make subdirectories on a domain act like subdomains?

ex. blah.com/bleh = bleh.blah.com

Why not ask your host to do it? Some pretty trivial mod_rewrite rules will take care of that.

uno 02-10-2007 03:48 PM

Quote:

Originally Posted by Superterrorizer (Post 11895475)
Why not ask your host to do it? Some pretty trivial mod_rewrite rules will take care of that.

I did, they said they didn't know how to do it.

Anyways, I found this post from Fris:

Quote:

Originally Posted by Fris
make sure to setup the * entry in your httpd.conf

servername www.domain.com
serveralias *.domain.com

htaccess would be

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/def --> /subs/abc/def
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/$1 [QSA,L]

so domain.com/subs would contain all your subdomains

so domain.com/subs/fuck --> fuck.domain.com


Superterrorizer 02-10-2007 04:22 PM

Quote:

Originally Posted by uno (Post 11895490)
I did, they said they didn't know how to do it.

Anyways, I found this post from Fris:



Your host doesn't know how to do it? You need a new host dude, something that simple should be within the grasp of any host worth their salt.

uno 02-10-2007 04:28 PM

Quote:

Originally Posted by Superterrorizer (Post 11895617)
Your host doesn't know how to do it? You need a new host dude, something that simple should be within the grasp of any host worth their salt.

It's actually a great host. I have no idea why they don't know this.

Superterrorizer 02-10-2007 04:29 PM

Quote:

Originally Posted by uno (Post 11895648)
It's actually a great host. I have no idea why they don't know this.

How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

If they were a great host they would have taken care of that for you.

fuzebox 02-10-2007 04:46 PM

Quote:

Originally Posted by Superterrorizer (Post 11895655)
How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

If they were a great host they would have taken care of that for you.

Even if for whatever reason the tech he talked to didn't know basic mod_rewrite, they could have done the 10 min of research in order to satisfy their client.

BigBen 02-10-2007 04:47 PM

Quote:

Originally Posted by uno (Post 11895464)
Thanks, I'll look for that and hit him up on icq.

Whoops, I guess it was Fris that made the post. At any rate, you found it.

Superterrorizer 02-10-2007 04:52 PM

Quote:

Originally Posted by fuzebox (Post 11895707)
Even if for whatever reason the tech he talked to didn't know basic mod_rewrite, they could have done the 10 min of research in order to satisfy their client.

Exactly. I'm curious to know which host it is now.

Catalyst 02-10-2007 05:12 PM

i wanted to do that a year ago.. uno if you don't have any luck let me know and I can look for my notes

L0stMind 02-10-2007 05:36 PM

ummm, there is an apache module that does this... mod_vhost_alias if I recall correctly.

uno 02-10-2007 07:22 PM

Quote:

Originally Posted by Superterrorizer (Post 11895655)
How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

If they were a great host they would have taken care of that for you.

Believe it or not, its NatNet.

chaze 02-10-2007 07:49 PM

Sub domains are old school, nowadays /directory is the norm

But if you really want sub.domains then redirect the directory with a htaccess file or just use that folder as the sub.domain folder and don't use any absolute paths.

Moose 02-10-2007 09:19 PM

Uno
Hope you got this sorted out.
You know we are still here for you if you need it.



Phatservers.net

jesse_adultdatingdollars 02-10-2007 09:20 PM

no idea......

uno 02-10-2007 09:23 PM

Quote:

Originally Posted by Moose (Post 11896494)
Uno
Hope you got this sorted out.
You know we are still here for you if you need it.



Phatservers.net

I asked support @ phatservers about how it was done on my server and they were a bit pissy since I switched companies and didn't answer me. :(

Other than that, I have never had a complaint with your company and the service you provide. Problems were addressed very quickly and service was top notch!

I highly recommend Phatservers to anyone!

Superterrorizer 02-10-2007 09:25 PM

Quote:

Originally Posted by uno (Post 11896165)
Believe it or not, its NatNet.

Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty. :)

Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.

broke 02-10-2007 09:25 PM

Quote:

Originally Posted by uno (Post 11896165)
Believe it or not, its NatNet.

In case you all missed it.

uno 02-10-2007 09:29 PM

Quote:

Originally Posted by Superterrorizer (Post 11896508)
Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty. :)

Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.

They generally have superb support, great uptime, a solid rep, and great all around service. I got in when they had their price matching promotion so its not as expensive as you'd imagine.

Moose 02-10-2007 09:35 PM

Quote:

Originally Posted by uno (Post 11896506)
I asked support @ phatservers about how it was done on my server and they were a bit pissy since I switched companies and didn't answer me. :(

Other than that, I have never had a complaint with your company and the service you provide. Problems were addressed very quickly and service was top notch!

I highly recommend Phatservers to anyone!

Well if they were pissy I apologize, They were just following policy to not provide tech support for other companys.
If your current host can't figure it out, hit me up personally and i'll get you in the right track, You have always been a good customer and I appreciate that!

Superterrorizer 02-10-2007 09:47 PM

Quote:

Originally Posted by uno (Post 11896523)
They generally have superb support, great uptime, a solid rep, and great all around service. I got in when they had their price matching promotion so its not as expensive as you'd imagine.

So if I understand this correctly, you were with Phatservers and switched to NatNet? You said you never had a complaint with them, so why would you switch? If it ain't broke, why fix it?

L0stMind 02-12-2007 03:08 PM

Quote:

Originally Posted by Moose (Post 11896540)
Well if they were pissy I apologize, They were just following policy to not provide tech support for other companys.
If your current host can't figure it out, hit me up personally and i'll get you in the right track, You have always been a good customer and I appreciate that!

Sign of a good host.

uno 03-04-2007 06:50 AM

Quote:

Originally Posted by L0stMind (Post 11905278)
Sign of a good host.

phatservers is a great company i recommend to anyone.

darksoul 03-04-2007 07:24 AM

Code:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !(www.)?([^.]+].domain.com$ [NC]
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^(www.)?([^.]+).domain.com(.*) /path/$2$3 [L]

you know where to reach me if you need help with it

LBBV 03-04-2007 07:36 AM

Quote:

Originally Posted by Superterrorizer (Post 11896508)
Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty. :)

Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.

Just to clear the air here and tell the ENTIRE story. This directory/sub-domain request was put in on Saturday and the tech who claimed the work order was not sure how to do it. He escalated it to another tech who was able to get this working in short order.

It's always great when only part of the story is revealed and folks try to build a case around that.

Quote:

I see lots of people say how awesome they are but nobody every says why.
All you have to do is search this board and you can find out why. Plenty of folks have come on here and raved about our service. If you would like, I can do this search for you.

We didn't get to be the biggest in the industry by providing poor service. Do you think we could keep the customers we have (PentHouse, Karups, LightSpeed, PlatinumBucks, Shemp, AL4A, Twistys, ConsumptionJunction, TripleXCash/TeenRevenue, SweetEntertainment and Shaw Internet?just to name a few...I could provide more if you need) by not knowing what the heck we are doing? :thumbsup

-- Bill

uno 03-04-2007 02:02 PM

NatNet did get it, and I have no complaints about the service. They are a great company and have done a lot for me so far.

uno 03-04-2007 02:11 PM

Actually the full story is that it was a post by Fris on here that helped the techs understand what i wanted to do. The other tech had no idea either.

Shap 03-04-2007 08:00 PM

Quote:

Originally Posted by LBBV (Post 12011767)
Just to clear the air here and tell the ENTIRE story. This directory/sub-domain request was put in on Saturday and the tech who claimed the work order was not sure how to do it. He escalated it to another tech who was able to get this working in short order.

It's always great when only part of the story is revealed and folks try to build a case around that.



All you have to do is search this board and you can find out why. Plenty of folks have come on here and raved about our service. If you would like, I can do this search for you.

We didn't get to be the biggest in the industry by providing poor service. Do you think we could keep the customers we have (PentHouse, Karups, LightSpeed, PlatinumBucks, Shemp, AL4A, Twistys, ConsumptionJunction, TripleXCash/TeenRevenue, SweetEntertainment and Shaw Internet?just to name a few...I could provide more if you need) by not knowing what the heck we are doing? :thumbsup

-- Bill

Bill you guys are so good it's not fair to your competition.

uno 03-04-2007 08:05 PM

Quote:

Originally Posted by Shap (Post 12015680)
Bill you guys are so good it's not fair to your competition.

They definitely are great. Every support request I've had has been handled within minutes and I've had 0 downtime so far.


All times are GMT -7. The time now is 05:14 AM.

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