Jump to content

SEO URLs and redirects


2n3055

Recommended Posts

  • 1 month later...

  • 2 weeks later...
Guest Ryanloop

We use 301 redirects as such:


redirect 301 /products.asp http://www.domain.com/products.php





The above would redirect http://www.domain.com/products.asp to http://www.domain.com/products.php



In your case, it would be:



redirect 301 /cubecart/index.php/text-kits/c_2.html http://mywebsite.com/cubecart/test-kits

Thanks for the information very useful @acschnabel

Link to comment
Share on other sites

  • 1 year later...

Hi Ryan,

 

I recently upgraded my CC3 to CC5 and added 301 redirect rule as you suggested, but these are not working. can you please look into htaccess below and let me know what I am doing wrong,

 

 

<IfModule mod_rewrite.c>  
 
  RewriteEngine On
 
  redirect 301 /mainspressure/ http://www.hotwatercylinder.co.nz/mains-pressure.html
  redirect 301 solar-/-wetback/superheat/superheat-wetback http://www.hotwatercylinder.co.nz/superheat-nz.html
 
  RewriteCond %{HTTP_HOST} ^hotwatercylinder.co.nz [NC]
  RewriteRule (.*) http://www.hotwatercylinder.co.nz/$1 [L]  
 
   ErrorDocument 404 http://www.hotwatercylinder.co.nz/index.php?_a=document&doc_id=28
   ErrorDocument 301 http://www.hotwatercylinder.co.nz/index.php?_a=document&doc_id=28  
 
  RewriteRule ^sitemap.html$ index.php?_a=plugin&plugin=sitemap [L]

  ######## START v4 SEO URL BACKWARD COMPATIBILITY ########
  RewriteCond %{QUERY_STRING} (.*)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule cat_([0-9]+)(.[a-z]{3,4})?(.*)$    index.php?_a=category&cat_id=$1&%1 [NC]

 

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...