Ad

Mod_rewrite For SEO Friendly URL Using Htaccess

- 1 answer

I am trying to write SEO friendly URL of below URL.

www.url.com/item.php?id=_84_113_112&lang=en

I have written below code:

RewriteRule ^(.*)/(.*)/$ item.php?id=$2&lang=$1 [QSA,L]

But not working, can anyone help?

Ad

Answer

Probably extra / at the end (before $) is the problem.
Change it to like this.

RewriteRule ^(.*)/(.*)$ item.php?id=$2&lang=$1 [QSA,L]
Ad
source: stackoverflow.com
Ad