Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- ,htaccess redirecting all subdomains
May 31, 2006, 10:17 pm
rate this thread
Anyone know how to re-jig this script so that 'sub' is a wildcard in
all places? This would allow limitless automatic subdomains hopefully.
RewriteCond % ^sub.scouttalk.ie$ [OR]
RewriteCond % ^www.sub.scouttalk.ie$ [OR]
RewriteCond % ^scouttalk.sub
RewriteRule ^(.*)$ http://www.scouttalk.ie/sub /$1 [R=301,L,nc]