![]() |
Hey Fris
What was that code you posted to do the easy subdomain creation again?
Thanks |
a bump for you
|
Bump for the cause ;)
|
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] |
Quote:
|
bump for brad incase he missed it
|
Fris you wrote that code from scratch?
|
Thanks buddy! Much appreciated!
|
| All times are GMT -7. The time now is 07:25 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123