.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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -