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

[cobalt-users] Mod_Rewrite Problems



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