Htaccess help

software development

#1

hello i have some problems with htaccess.
heres my current htaccess

RewriteEngine On
RewriteBase /

RewriteRule ^([^/]+).html$ /index.php?id=$1
RewriteRule ^([^/]+)/(.*).html$ /view.php?cat=$1&page=$2

it works when i have a url like
www.mysite.com/category/2.html

but i also want to make a page that has a url something like
www.mysite.com/category-2-1.html

with original url
www.mysite.com/viewitem.php?cat=category&page=2&item=2

whenever i use the url
www.mysite.com/category-2-1.html

it shows the page of
www.mysite.com/category-2.html
and disregarding the value of “item”

with my htaccess of
RewriteRule ^([^/]+)-(.)-(.).html$ /viewitem.php?cat=$1&page=$2&item=$3

can someone pls help me with this one?
thanks in advance.


#2

Try taking a cue from the first capture and be more specific:

:cool: openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7


#3

thanks for the reply but i get 404 page error