[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] .htaccess doesn't work with mod_rewrite



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.