User Tools

Site Tools


redirect_links_from_another_platform

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redirect_links_from_another_platform [2019/11/22 02:35]
admin
redirect_links_from_another_platform [2020/08/17 11:08] (current)
A User Not Logged in old revision restored (2020/08/16 15:46)
Line 1: Line 1:
-====== Redirect Links From Other Platforms ======+====== Redirect Links From Another Platform ======
  
-Assuming you have migrated your products to LiteCart from another platform __assigning the same IDs__. Here are some mod_rewrite rules for redirecting Google and users to the new URLs.+Assuming you have migrated your products to LiteCart from another platform assigning the same IDs. Here are some good mod_rewrite rules for telling Google and others your pages have moved.
  
 ===== Using .htaccess===== ===== Using .htaccess=====
Line 27: Line 27:
   # Redirect old osCommerce URLs   # Redirect old osCommerce URLs
   RewriteCond %{REQUEST_URI} ^(/|/index.php) [NC]   RewriteCond %{REQUEST_URI} ^(/|/index.php) [NC]
-  RewriteCond %{QUERY_STRING} cPath=([0-9]_+)?([0-9]_+)?([0-9]+) +  RewriteCond %{QUERY_STRING} cPath=([0-9]+) 
-  RewriteRule .* /index.php/category?category_id=%[R=301,L] +  RewriteRule .* /index.php/category?category_id=%[R=301,L] 
-  RewriteRule ^.*-c-([0-9]+_)?([0-9]+_)?([0-9]+)\.html$ /index.php/category?category_id=$[R=301,L]+  RewriteRule ^.*-c-([0-9]+)\.html$ /index.php/category?category_id=$[R=301,L]
      
   RewriteCond %{REQUEST_URI} ^(/|/index.php) [NC]   RewriteCond %{REQUEST_URI} ^(/|/index.php) [NC]
redirect_links_from_another_platform.1574386551.txt.gz · Last modified: 2019/11/22 02:35 by admin