0

I have this kind of URL:

http://dev.myproject.local/index.php?route=product/category/feature

and I want to be like this:

http://dev.myproject.local/featurepage

I have this in my htaccess

RewriteEngine On
RewriteRule ^index.php?route=product/category/feature$ /featurepage/ [L]

But it's not working.

Jerielle
  • 7,144
  • 29
  • 98
  • 164

1 Answers1

1

You can try following solutions. I used similar last time.

RewriteCond %{THE_REQUEST} \ /index\.php\?_route_=?([^&\ ]*)
RewriteRule ^ /%1? [L,R]
Shajibur Rahman
  • 436
  • 3
  • 12
  • I found another solution , may be it is worth to try if above solution does not work http://stackoverflow.com/questions/10813809/remove-index-phproute-common-home-from-opencart – Shajibur Rahman May 11 '17 at 03:17