,htaccess redirecting all subdomains

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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]


Re: ,htaccess redirecting all subdomains

cronoklee@hotmail.com wrote:

Quoted text here. Click to load it

^sub.scouttalk.ie$ --> scouttalk.ie$

David Dorward       <http://blog.dorward.me.uk/ <http://dorward.me.uk/
                     Home is where the ~/.bashrc is

Site Timeline