Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
Hey Fris
Hey Fris
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
BradM
Confirmed User
Join Date:
Dec 2003
Posts:
3397
Share
Post
#1
Hey Fris
10-17-2006, 02:51 PM
What was that code you posted to do the easy subdomain creation again?
Thanks
marketsmart
HOMICIDAL TROLL KILLER
Join Date:
Dec 2004
Posts:
20419
Share
Post
#2
10-17-2006, 02:52 PM
a bump for you
Comment
Post
Cancel
Miguel T
♦ Web Developer ♦
Join Date:
May 2005
Posts:
12470
Share
Post
#3
10-17-2006, 04:46 PM
Bump for the cause ;)
Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress
Comment
Post
Cancel
fris
I have to go potty
Join Date:
Aug 2002
Posts:
55785
Share
Post
#4
10-17-2006, 04:51 PM
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.
Totally Free Templates
Comment
Post
Cancel
CaptainHowdy
Too lazy to set a custom title
Join Date:
Dec 2004
Posts:
94102
Share
Post
#5
10-17-2006, 04:54 PM
Originally posted by
Fris
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]
!!
PIGGY SIGGY FOR SALE
Comment
Post
Cancel
fris
I have to go potty
Join Date:
Aug 2002
Posts:
55785
Share
Post
#6
10-18-2006, 04:46 AM
bump for brad incase he missed it
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
Totally Free Templates
Comment
Post
Cancel
madawgz
8.8.8.8
Join Date:
Mar 2006
Posts:
30509
Share
Post
#7
10-18-2006, 06:50 AM
Fris you wrote that code from scratch?
TAEMDLRMSKRJIXMRLSMRJ.
Comment
Post
Cancel
BradM
Confirmed User
Join Date:
Dec 2003
Posts:
3397
Share
Post
#8
10-18-2006, 07:38 AM
Thanks buddy! Much appreciated!
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment