Skip to content

Instantly share code, notes, and snippets.

@jason-fonseca
Created May 3, 2012 05:48
Show Gist options
  • Save jason-fonseca/2583604 to your computer and use it in GitHub Desktop.
Save jason-fonseca/2583604 to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteBase /
###### Elite electronics
RewriteCond %{QUERY_STRING} ^main_page=index&manufacturers_id=18$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au? [R=301,L]
###### Pioneer 8350
RewriteCond %{QUERY_STRING} ^main_page=product_info&cPath=79_66&products_id=511$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&cPath=79_66_107&products_id=511? [R=301,L]
RewriteCond %{QUERY_STRING} ^main_page=product_info&products_id=511&language=en$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&cPath=79_66_107&products_id=511? [R=301,L]
RewriteCond %{QUERY_STRING} ^main_page=product_info&products_id=511$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&cPath=79_66_107&products_id=511? [R=301,L]
###### Pioneer 6350
RewriteCond %{QUERY_STRING} ^main_page=product_info&cPath=79_66_107&products_id=510$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&products_id=510? [R=301,L]
RewriteCond %{QUERY_STRING} ^main_page=product_info&products_id=510&language=en$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&products_id=510? [R=301,L]
###### Pioneer 2350UB
RewriteCond %{QUERY_STRING} ^main_page=product_info&cPath=79_66&products_id=491$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/index.php?main_page=product_info&products_id=491&language=en [R=301,L]
RewriteCond %{HTTP_HOST} ^elite-electronics.com.au
RewriteRule (.*) http://www.elite-electronics.com.au/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.elite-electronics.com.au/ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment