[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Re: .htaccess doesn't work with mod_rewrite (Kameel)
- Subject: [cobalt-users] Re: Re: .htaccess doesn't work with mod_rewrite (Kameel)
- From: "Cobalt List" <cobalt@xxxxxxxxxxxxx>
- Date: Tue Dec 3 12:49:55 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
It's more complicated, the code below does path re-writes, it's custom code
which processes any domain ending with .auz.it and directs it to the
folder /home/sites/site4/*domprefix*/*end path bits*
i.e: that code directs data.auz.it or www.data.auz.it to
/home/sites/site4/data
and so on for any prefix registered in bind (or for * if wanted)...
whereas the sample you gave is megerly a url pointer, I think the problem
lies within access.conf or srm.conf, in relation to the ability of the
path /home/sites/site4/* to process .htaccess etc.. however this is beyond my
capabilities, is there anyone that can help me master what I'm trying to
achieve?
Original Message
========================================================
Reply-To: cobalt-users@xxxxxxxxxxxxxxx
I just place this htaccess file in the root of the subdomains directory
(created by the cobalt gui).
It seems to work quite well, haven't noticed any downstream htaccess files
being ignored...
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.domain.com/directory/$1 [P]
HTH,
Kam.
>I've set up a rewrite rule to direct subdomains automatically to their
>folder, as shown below:
>
><VirtualHost 216.40.195.62>
>ServerName www.auz.it
><snip>
></snip>
>AddType text/html .shtml
></VirtualHost>
>
>I've got cgi to work with it however, it will not process any .htaccess files
>for the subdomains, only working for the core domain auz.it and www.auz.it
>(comes up with a "The page cannot be displayed" internet explorer error).
>
>How can I get the re-written subdomains to process .htaccess files?
>
>James Austin.