[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] .htaccess (groan). Help required!
- Subject: [cobalt-users] .htaccess (groan). Help required!
- From: "Paul Mullett" <paul.mullett@xxxxxxxxxxxxxxxxxx>
- Date: Mon Apr 8 20:30:01 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I have been searching the archives and checking my system/system files all
morning and I have been unable to come up with answer for my problem, if
anyone can help me it would be much appreciated.
Basically, I have had (for several months) a .htaccess file in one virtual
site's root folder that handles rewrite/symlinks. I have three domain names
all pointing to one virtual site (/home/sites/site1/web/) and then I use
(/home/sites/site1/web/.htaccess) to redirect two of the three domains to
(/home/sites/site1/web/domain1/) and (/home/sites/site1/web/domain2/).
.htaccess file looks like this:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain1.*
RewriteCond %{REQUEST_URI} !/domain1/
RewriteRule ^(.*)$ /domain1/$1
RewriteCond %{HTTP_HOST} ^domain1.*
RewriteCond %{REQUEST_URI} !/domain1/
RewriteRule ^(.*)$ /domain1/$1
This worked fine until yesterday afternoon when via the cobalt admin gui
(this is a RAQ4 btw) I made a few changes to the main virtual host (mostly
just to increase available space).
Since I have made these changes, something somewhere has obviously been over
written by the system as the .htaccess redirects no longer work.
I have made sure that the allowoverrides in /etc/httpd/conf/access.conf
appear to be correct (and they do appear to be correct from what I can
gather), and looked at /etc/httpd/conf/httpd.conf, and while that file was
amended by the system thanks to my changes, I believe I have made all the
required corrections. I have restarted the web server several times, tries
various combinations (including the dreaded allowoverride All, but the
.htaccess file (and it is still there!) is having no affect, I can type in
www.domain.com www.domain1.com and www.domain2.com and instead of going to
the correct places they just stick at www.domain.com.
Can anyone please suggest what I may have missed, is there any other files
apart from access.conf and httpd.conf I need to check/correct to enable the
symlinks to work via htaccess?
Thank in advance,
Paul (at the end of my tether(again)). :-)