0

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.

2
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by Dani
0

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

0

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

0

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

0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.