I am using .htaccess file to achieve clean urls ,But issue is , I am unable to get 2nd parameter.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9]+)$ result-by-city.php?city=$1
RewriteRule ^\/(searedness)([0-9]+)(.*)-gu([0-9]+)\/(.*)$ ?searedness$2=$4&%{QUERY_STRING}[L]
</IfModule>
If I add second parameter like this
RewriteRule ^([a-zA-Z0-9]+)$ result-by-city.php?city=$1&location=$2
then , page goes 404
http://example.com/delhi/noida --> returns 404
http://example.com/delhi/ --> working fine with below rule only
RewriteRule ^([a-zA-Z0-9]+)$ result-by-city.php?city=$1
$1and$2, what do you intend to have there?RewriteRule ^([a-zA-Z0-9]+)$ result-by-city.php?city=$1works because$1refers to the value captured with the first parenthesized construct in the regex pattern. You do not have the second(...)there.RewriteRule ^([a-zA-Z0-9]+)$ ^([a-zA-Z0-9]+)$ result-by-city.php?city=$1&location=$2like this ? It is showing 500 internal server error^([^/]+)/([^/]+)/?$