[BNM] htaccess file?
AndrewGill73@gmail.com
andrewgill73 at gmail.com
Wed Mar 25 16:31:10 GMT 2009
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
More information about the BNMlist
mailing list. Powered by Wessex Networks