Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. RewriteEngine On
  2.  
  3. RewriteCond %{REQUEST_URI} ^/sorting/$
  4. RewriteCond %{QUERY_STRING} ^brands%5B%5D=restaurants&brand%5B%5D=%25
  5. RewriteRule ^.*$ /restaurants? [R=301,L]
  6.  
  7. RewriteCond %{REQUEST_URI} ^/sorting/restaurants$
  8. RewriteCond %{QUERY_STRING} ^brands%5B%5D=restaurants&brand%5B%5D=%25
  9. RewriteRule ^.*$ /sorting/restaurants [R=301,L]
  10.  
  11. RewriteCond %{QUERY_STRING} ^$
  12. RewriteRule ^restaurants.php /restaurants.php?brands%5B%5D=restaurants&brand%5B%5D=%25 [R=301,L]
  13.  
  14. RewriteCond %{QUERY_STRING} brands%5B%5D=restaurants&brand%5B%5D=%25
  15. RewriteRule ^(.*)$ /restaurants.php? [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement