I've several rewrite rules during my .htaccess file that work fine and I wish to give a specific situation to show

sinaesthesia.co.united kingdom/category/skin psoriasis


sinaesthesia.co.united kingdom/category.php5?category=skin psoriasis

And So I attempted:

RewriteRule ^(.)category/(.)$ /$1category.php5?category=$2 [L]

which does not work. I have attempted it without taking the stuff before 'category' because category.php5 is at the bottom anyway, so it must work without that, have attempted:

RewriteRule ^category/([a-z]+?)$ /category.php5?category=$1 [L]

with and without taking the stuff before category, and absolutely nothing works - actually, I generally obtain a 500 error! This is actually the relaxation from the file:

RewriteEngine On

#remember to change this to aromaclear
RewriteCond %{HTTP_HOST} !^sinaesthesia\.co.uk$ [NC]
RewriteRule ^(.*)$ http://sinaesthesia.co.uk/$1 [R=301,L]

#Translate default page to root
RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(php5|html)\ HTTP
RewriteRule ^(.*)index\.(php5|html)$ /$1 [R=301,L]

#translate any .html ending into .php5
RewriteRule ^(.*)\.html$ /$1\.php5  

#change / for ?
RewriteRule ^(.*)\.html/(.*)$ /$1\.html?$2

#strip .html from search res page
RewriteRule ^(.*)search/(.*)$ /$1search_results\.html/search=$2

#translate product details link from search res page
RewriteRule ^products/(.*)/(.*)/(.*)$ /product_details.php5?category=$1&title=$2&id=$3 [L]

#Translate products/psorisis/chamomile-skin-cream-P[x] to productview.php5?id=1
RewriteRule ^products/.*-P([0-9]+) /productview.php5?id=$1 [L]

Ah: because I've got a document known as category.php5 and I am attempting to use category/skin psoriasis, the server attempts to resolve that as category.php5/skin psoriasis, which fails. Fixed it now!