Hi,
I am using opencart and I want to rewrite a url through htaccess. I have tried to rewrite the url but it redirects me to the "page not found" page.
I have tried to rewrite the url using the following pattern

RewriteRule product/detail/(.*)/$  /index.php?route=pro/det&photo_id=$1

Please help.
Thanks in advance.

Also ... are you sure that the target URL is valid? It seems like it shouldn't have the / in pro/det?

Yes the link is valid but I have this condition that is applied for the rist of the system

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

I think this is creating problem.Is there any way to write url for the link I have mentioned the way I want keeping this condition on as I want both conditions to work .Thanks

I have changed the [R=301,L] to [L,QSA] and it is giving me the error Forbidden

You don't have permission to access /D:/wamp/www/projec/index.php on this server. 403 Forbidden

Let's tackle one rule at a time. Does the rule I came up with work without applying the other rule?

Also, are you ultimately using the other rule before or after the product/detail rule?

No the rule you applied did not work

Just out of curiosity, does it work without the backslash in the rerouted URL?