[BNM] DNS book recommendation. Was htaccess file?

AndrewGill73@gmail.com andrewgill73 at gmail.com
Thu Mar 26 12:52:14 GMT 2009


Thanks James/Richard. I'm starting to realise how little I know about this
area - I'll read up on cname records.

Actually, I'd like to learn more about DNS generally (cname, mx records mean
nothing to me!) - is there a website or practical book that anyone can
recommend??

thanks,
Andy Gill


2009/3/25 Richard Maynard / Wessex Networks <rjm at wessexnetworks.com>

> James is spot on....
>
> Until you've got a wildcard DNS entry for *.example.com - and an
> equivalent, matching Apache configuration that responds to all of the
> requests you want, with all the hostnames you want (a.example.com is a
> different host / site to b.example.com) then you won't get anywhere with
> .htacess - that's the last bit.
>
> I can't think of many genuine uses for using wildcard DNS like this, so I'd
> suggest taking the time to question if it is the right way to achieve
> whatever your goal is.
>
> Regards,
>
> Richard.
>
> Wessex Networks
> Linchmere Place
> Ifield
> Crawley
> West Sussex
> RH11 0EX
> www.wessexnetworks.com rjm at wessexnetworks.com
> T: 01293 542080 F: 01293 553849
>
> -----Original Message-----
> From: bnmlist-bounces at brightonnewmedia.org [mailto:
> bnmlist-bounces at brightonnewmedia.org] On Behalf Of AndrewGill73 at gmail.com
> Sent: 25 March 2009 16:31
> To: Brighton New Media
> Subject: [BNM] htaccess file?
>
> Hello BNM,
>
> I was wondering if anyone could help me figure out where I'm going wrong
> with .htaccess ?
>
> I want to allow a user to type this url:
> http://32.example.com
>
> To get the equivalent of this:
> http://www.example.com/mydir/32/
>
> My .htaccess file is below:
> IndexIgnore *
> AddType application/x-httpd-php .htm .html
>
> RewriteEngine  on
> RewriteCond   %{HTTP_HOST}                 ^www\.[^.]+\.example\.com$
> RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
> RewriteRule   ^www\.([^.]+)\.example\.com(.*) /mydir$1$2
>
>
> As you can probably tell, I'm quite new to editing htaccess files! Many
> thanks in advance!
>
> cheers,
> Andy Gill
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>


More information about the BNMlist mailing list. Powered by Wessex Networks