Home Undefined parameter when doing URL RewriteRule
Reply: 0

Undefined parameter when doing URL RewriteRule

kelsheikh
1#
kelsheikh Published in 2018-02-08 16:16:01Z

I have noticed some occasional URL issues in my google crawler errors with a rewrite rule I use to make a clean URL. Any help is greatly appreciated.

Here is what I am occasionally seeing as the error:

http://www.example.com/store/undefined/undefined/

It should be something like this:

http://www.example.com/store/1234/store-name/

Here is my htaccess rules:

 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(\w+)/([\w-]+)/$ index.php?id=$1&ch=$2 [L]
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.330812 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO