My mod_rewrite in my .htaccess is working for the most part. The problem is that for the category rewrite it only works if I have a capital letter in the word category or if all the letters are capital. Not sure why it won't work if I have category. The business rewrite works fine along with all the other rewrites I have. Just the category one doesn't. Any help would be appreciated. I'm on 1and1 hosting and they don't allow for a log to be generated using my .htaccess.
Works fine:
http:
//test.example.com/Category/amusement/1/index.html
404 Error:
http:
//test.examplen.com/category/amusement/1/index.html
Here's my code:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^business/(.*)/(.*)/index.html$ index.php?p=business&bid=$2 [NC,L]
RewriteRule ^category/(.*)/(.*)/index.html$ index.php?p=category&cid=$2 [NC,L]
RewriteRule ^certificate/(.*)/(.*)/index.html$ index.php?p=certificate&cert=$2 [NC,L]
RewriteRule ^print/information/(.*)/index.html$ index.php?p=print&data=information&id=$1 [NC,L]
RewriteRule ^print/coupons/(.*)/index.html$ index.php?p=print&data=coupons&id=$1 [NC,L]
RewriteRule ^print/article/(.*)/index.html$ index.php?p=print&data=pages&id=$1 [NC,L]
RewriteRule ^tell-a-friend/information/(.*)/index.html$ index.php?p=tellFriend&data=information&id=$1 [NC,L]
RewriteRule ^tell-a-friend/coupons/(.*)/index.html$ index.php?p=tellFriend&data=coupons&id=$1 [NC,L]
RewriteRule ^tell-a-friend/certificates/(.*)/index.html$ index.php?p=tellFriend&data=certificates&id=$1 [NC,L]
RewriteRule ^contact-us/index.html$ index.php?p=contact [nc,L]
RewriteRule ^catalog/index.html$ index.php?p=catalog [nc,L]
RewriteRule ^articles/(.*)/index.html$ index.php?p=pages&name=$1 [NC,L]
RewriteRule ^certificates/category/(.*)/(.*)/index.html$ index.php?p=certificates&type=category&id=$2 [NC,L]
RewriteRule ^certificates/(.*)/(.*)/index.html$ index.php?p=certificates&type=business&id=$2 [NC,L]
RewriteRule ^certificate/(.*)/(.*)/index.html$ index.php?p=certificate&cert=$2 [NC,L]
[edited by: jdMorgan at 5:53 pm (utc) on Feb. 3, 2010]
[edit reason] Please use example.com only. [/edit]