Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 13th, 2012  |  syntax: None  |  size: 1.94 KB  |  hits: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## Activate the mod_rewrite Engine
  2.  
  3.  
  4.  
  5. RewriteEngine On
  6.  
  7.  
  8.  
  9. ## START: New rewrites
  10.  
  11.  
  12.  
  13. RewriteRule ^info/(.*)/ /seoUrls.php?z=info&c=$1 [QSA,L]
  14.  
  15. RewriteRule ^info/(.*)$ /seoUrls.php?z=info&c=$1 [QSA,L]
  16.  
  17.  
  18.  
  19. RewriteRule ^sale-items/(.*)$ /index.php?_a=viewCat&catId=saleItems&%1 [NC,L]
  20.  
  21.  
  22.  
  23. RewriteRule ^products/(.*)/(.*)/(.*).html /seoUrls.php?z=prod&c=$1&c2=$3 [QSA,L]
  24.  
  25. RewriteRule ^products/(.*)/(.*).html /seoUrls.php?z=prod&c=$1&c2=$2 [QSA,L]
  26.  
  27.  
  28.  
  29. ## END: New Rewrites
  30.  
  31.  
  32.  
  33. ## START: Old Rewrites  - CubeCart Defaults
  34.  
  35. RewriteCond %{QUERY_STRING} (.*)$
  36.  
  37. RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$       /seoUrls.php?y=info&id=$1 [QSA,L]
  38.  
  39.  
  40.  
  41. RewriteCond %{QUERY_STRING} (.*)$
  42.  
  43. RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$       /seoUrls.php?y=product&id=$1 [QSA,L]
  44.  
  45.  
  46.  
  47. RewriteCond %{QUERY_STRING} (.*)$
  48.  
  49. RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?$        /seoUrls.php?y=cat&id=$1 [QSA,L]
  50.  
  51.  
  52.  
  53. RewriteCond %{QUERY_STRING} (.*)$
  54.  
  55. RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$       /index.php?_a=tellafriend&productId=$1&%1 [NC,L]
  56.  
  57.  
  58.  
  59. RewriteCond %{QUERY_STRING} (.*)$
  60.  
  61. RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$       /seoUrls.php?y=saleItems [NC,L]
  62.  
  63. ## END: Old rewrites
  64.  
  65.  
  66.  
  67. RewriteRule ^products/(.*) /seoUrls.php?z=prod&c=$1 [QSA,L]
  68.  
  69.  
  70.  
  71. RewriteCond %{REQUEST_FILENAME} !-f
  72.  
  73. RewriteCond %{REQUEST_FILENAME} !-d
  74.  
  75. RewriteRule ^(.*) /seoUrls.php?z=cat&c=$1 [QSA,L]
  76.  
  77.  
  78.  
  79. RewriteCond %{REQUEST_FILENAME} !-f
  80.  
  81. RewriteCond %{REQUEST_FILENAME} !-d
  82.  
  83. RewriteRule ^(.*)/(.*)/ /seoUrls.php?z=cat&c=$2&r=1 [QSA,L]
  84.  
  85.  
  86.  
  87. RewriteCond %{REQUEST_FILENAME} !-f
  88.  
  89. RewriteCond %{REQUEST_FILENAME} !-d
  90.  
  91. RewriteRule ^(.*)/$ /seoUrls.php?z=cat&c=$1&r=2 [QSA,L]
  92.  
  93.  
  94.  
  95. RewriteCond %{REQUEST_FILENAME} !-f
  96.  
  97. RewriteCond %{REQUEST_FILENAME} !-d
  98.  
  99.  
  100.  
  101. RewriteRule ^(.*)/(.*) /seoUrls.php?z=cat&c=$2&r=3 [QSA,L]
  102.  
  103.  
  104.  
  105. RewriteCond %{REQUEST_FILENAME} !-f
  106.  
  107. RewriteCond %{REQUEST_FILENAME} !-d
  108.  
  109.  
  110.  
  111. RewriteRule ^(.*)$ /seoUrls.php?z=cat&c=$1&r=5 [QSA,L]