.htaccess RewriteRule is not working -


rewriterule new/$ /search.php?category=1 rewriterule new/\?(.+)$ /search.php?category=1&$1 

i'm trying this, if following address link accessed,

http://onlineshop.com/new/ http://onlineshop.com/new/?price_max=30 

then open link,

http://onlineshop.com/new/search.php?category=1 http://onlineshop.com/new/search.php?category=1&price_max=30 

unfortunately not working way.

a rewriterule won't naturally catch query string parameters, must use kind of .htaccess :

rewritecond %{query_string} ^(.*)$ rewriterule ^new/$ /search.php?category=1&%1 

Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -