E-Commerce: Random Cart ID Redirects
-
Hi All,
I'm having an ecommerce cart issue. Basically, each time a purchase is made, the cart pops up with a unique id (eg www.mysite.com/cart.php?action=add&product_id=3728), This is being caught by MOZ scans as an individual page in some instances.
Could I simply add Disallow: /cart.php to my robots.txt to nix this issue? In theory it should keep all subsequent query strings from being indexed, right?
Thanks!
-
I'm using Interspire's shopping cart system with a few modifications. There's absolutely no official support for it at this point, so I appreciate your help.
The cart is a standalone php page, so I think that just blocking that off should be sufficient.
Thanks!
-
No problem. What platform do you use, because you can include what CleverPhD said as well, it really just depends on how the headers of the template are generated. I am not familiar with a platform that uses directories for the cart pages, but I am sure that some exist. One thing to watch out for if you try to no follow a whole directory is, some carts put all of their secured (ssl) pages in the same place. This could include the contact page, which you want to leave index able. If you are not familiar with coding in the platform, I would avoid it, because if you got the conditional code wrong, you could de-index a portion of your site accidentally.
-
Thanks, Lesley. I've just added the cart page to the disallow list.
-
I would add, you want to also no follow, noindex all links to any of your shopping cart pages. Ideally, if you have your cart pages in a given folder, you can disallow the whole folder and take care of things as a group.
-
Generally you always disallow the cart page in e-commerce sites. The reason being is that some spiders like baidu, will make fake shopping carts when spidering your site. If you keep track of your abandoned cart rate, this will wreak havoc on your stats.
When you disallow the cart.php, it will keep the whole page from being indexed, which ideally is not a bad thing. More than likely the way your cart works is it uses ajax to post the product to that page silently to add it to the cart. But at the same time if you go to site.com/cart.php it will more than likely take you to the cart screen. There really is no inherit value in having that page indexed by search engines. If people are coming to that page, it will also skew your numbers when you are trying to figure why people are dropping out of the checkout process.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How do I fix a 404 redirect chain
How do I fix a 404 redirect chain? I can't seem to find the answer and I'm worried about it effecting my SEO. Any help would be great!
Technical SEO | | sammecooper0 -
301 Redirects in subfolders
Hi, we're making our site into a static site but I would like to transfer the Google juice. Most of the links and database exist on subfolders though. Could I simply do 301 redirects on the subfolders and retain the value or does it have to be on the full domain?
Technical SEO | | Therealmattyd0 -
Fix redirect loop
Hi,
Technical SEO | | bshanahan
I've been trying set up a 301 redirect from http://domestiquecap.com to www.domestiquecap.com but one was already set up by my client the other way around (from www to http://) so it's creating a redirect loop. However, we don't know where that original redirect was set up. The htaccess file doesn't appear to have the redirect and neither does the control panel of our hosting company. We need to turn off that original redirect so that I can instead redirect to the www subdomain. Where else could this 301 redirect have been set up? Is there a tool to diagnose where the 301 redirect was created so that I can turn it off? I am thinking maybe it was created via the domain registrar (GoDaddy) since the client has the login there and hasnt shared it with me.0 -
Which to redirect to, www or non-www?
Please help. I have a client who's site has duplicate content issues due mainly to the www/non-www problem. The MOZ page authority of both is the same, the www version has more linking root domains, and for most of the keywords the www version shows up in Google. The developer indicated the site is on the non-www. I need to do a .htacess 301 redirect to eliminate the dup content problems. Which do I redirect to? Any help is greatly appreciated, Thanks!!
Technical SEO | | SteveFaber0 -
Help with bing redirection error
Can somebody help me figure out this bing redirect error. The link to "http://w******/flea-control" has resulted in HTTP redirection to "http://w******/feas/flea-control/".Search engines can only pass page rankings and other relevant data through a single redirection hop. Using unnecessary redirects can have a negative impact on page ranking. I am using wordpress. I am actually linking to the /feas/flea-control/ version. I have looked every where for help. I got this error using bings seo toftware
Technical SEO | | OxzenMedia0 -
Someone is redirecting their url to mine
Hello, I have just discovered that a company in Poland www.realpilot.pl is directing their domain to ours www.transair.co.uk. We have not authorised this, neither do we want this. I have contacted the company and the webmaster to get it removed. If you search for the domain name www.realpilot.pl we (www.transair.co.uk) come up top. My biggest worry is that we will get penalised by Google for this re-direct as it appears to be done using some kind of frame. Does anyone know anything about this kind of thing? Many Thanks Rob Martin
Technical SEO | | brightonseorob0 -
301 redirects
Hi Guys, Question,
Technical SEO | | VividLime
Lets say I have a page oldfile.php at position #2 then set-up a redirection in the following way 100 incoming external links--> oldfile.php [301 to] newfile.php Google comes along and updates its index to newfile.php and ranking of newfile.php remains at position #2. Everything is good. Lets say in 5months, I come along and delete oldfile.php so we have
100 incoming external links--> deleted(oldfile.php) or 100 incoming external links-->404 error. |||| newfile.php Do I then loose the rankings on newfile.php. My thinking is that now that all the external links now point to a page not found, newfile.php should loose rankings Am I correct in my assumption?0 -
How to Redirect only specific pages to new domain
My HTACCESS FILE IS AS FOLLOWS: rewriteengine on
Technical SEO | | askthetrainer
rewritecond %{HTTP_HOST} ^mydomain.com$
rewriterule ^mydomain/(.*)$ "http://www.mydomain.com/$1" [R=301,L] #4d864805b49b5 I want to move ONLY specific pages from this domain to a new domain How do I edit my HTACCESS (which redirects http:// to www.) to move specific pages from old domain (which I have to delete) to new domain.... I.e. http://mydomaon.com/move.html needs to move to http://mynewdomain.com/move.html Where i can delete the original domains0