SEO Urls with .htaccess


I create a .htaccess file with these lines:

Options +FollowSymLinks
RewriteEngine On

RewriteRule index/locale/(.*)/id/(.*)/ index.php?locale=$1&id=$2
RewriteRule index/locale/(.*)/id/(.*) index.php?locale=$1&id=$2 

I expect that it works with this call:


But it doesn't work.
Please help… What is wrong. I copied all these codes from very famous online seo friendly code generator.
Best regards.

Best Solution

did you try http://localhost/test/index/locale/tr/id/14 ?

it seems that the regexp is expecting "index" and not "index.php"

Related Question