[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Mod_Rewrite Problems
- Subject: [cobalt-users] Mod_Rewrite Problems
- From: "Simon Hamilton [4sol]" <Simon.Hamilton@xxxxxxxx>
- Date: Mon Nov 18 06:05:23 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi All
First time here!
I'm having a problem with a site I had on a FreeBSD 4.7 dev platform and
have now moved to production on a Cobalt RAQ4.
I had the following in my .htaccess, but it doesn't seem to work at all,
and the server gives me "Internal Server Error" when I try to call any
page.
.htaccess
------------------------
AuthName "DEV Area"
AuthType Basic
AuthUserFile "/home/sites/site45/web/ht/.htpasswd"
<LIMIT GET POST>
Require valid-user
</LIMIT>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/ht/
RewriteRule ^([a-z0-9]*)\.html$ index.php?cid=$1&id=$1
[L]
RewriteRule ^([a-z0-9]*)/([a-z0-9]*)\.html$ index.php?cid=$1&id=$2
[L]
RewriteRule ^([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)\.html$
index.php?cid=$2&id=$3 [L]
RewriteRule ^([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)\.html$
index.php?cid=$3&id=$4 [L]
RewriteRule
^([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)/([a-z0-9]*)\.html$
index.php?cid=$4&id=$5 [L]
------------------------
Can anyone suggest why this wouldn't be working, or what I need to do to
fix it?
Thanks in advance!
Best Regards
Simon H