Here is my situation,
We have a small store that does very minimal online sales. We had the store in an old cart based on ASP scripts and someone had the server hacked, so we had to move to another host/server and chose opencart of this. We are on 1.5.1 and everything is working great including SEO url's and paypal checkout.
We have some urls on google/bing search that point to specific products and those links are going to 'Page not found'. I would like to redirect those specific URL's to the new url's in opencart. The reason is when I look at analytics, I am seeing google search for a key word --> old url --> page not found and the user bounces. To prevent this immediate bounces, I would like to automatically redirect them to the new url for the same item.
With that in mind I do have a full list of old url and corresponding new url - how do I go about to accomplish the above.
Any help would be greatly appreciated - Thanks in advance.
open .htaccess
Directly after the line that starts with RewriteBase
Add the following line for each of your redirects
RewriteRule ^OLDPAGE.ASP$ /NEWPAGE [R=301,L]
Directly after the line that starts with RewriteBase
Add the following line for each of your redirects
RewriteRule ^OLDPAGE.ASP$ /NEWPAGE [R=301,L]
Thanks Simon! Appreciate the pointer.
This works great for
RewriteRule ^aboutus.asp$ /store/about_us [R=301,L]
I also have couple of product pages that looks like this
RewriteRule ^prodView.asp?idproduct=22$ /store/index.php?route=product/product&product_id=67 [R=301,L]
I think I have to do something about the query string - any pointers?
This works great for
RewriteRule ^aboutus.asp$ /store/about_us [R=301,L]
I also have couple of product pages that looks like this
RewriteRule ^prodView.asp?idproduct=22$ /store/index.php?route=product/product&product_id=67 [R=301,L]
I think I have to do something about the query string - any pointers?
pop a question mark after (from your example) 67
This should discard the original query string from the old URL being appended to the new one
This should discard the original query string from the old URL being appended to the new one
Who is online
Users browsing this forum: No registered users and 155 guests