bedfordprint Posted November 18, 2014 Share Posted November 18, 2014 This is the weirdest thing ever happened. All my Categories were all of the sudden redirected to google!! See the code below. I had to rebuild everything, but how this happened? <div id="breadcrumb"> <ul> <li><a href="http://www.bedfordprint.co.uk">Home</a></li> </ul> </div> <div class="home_wrapper"> <div class="sidebar" id="sidebar_left"> <div> <h3>Shop by Category</h3> <ul id="menu" class="accordion"> <li><a href="http://www.google.com/index.php" title="Homepage">Homepage</a></li> <li> <a href="http://www.google.com/2015-calendars.html" title="2015 Calendars">2015 Calendars</a> </li><li> <a href="http://www.google.com/online-banner-printing.html" title="Banner Printing">Banner Printing</a> </li><li> <a href="http://www.google.com/event-banners.html" title="Event Banners">Event Banners</a> </li><li> <a href="http://www.google.com/pavement-signs.html" title="Pavement Signs">Pavement Signs</a> </li><li> <a href="http://www.google.com/pavement-sign-posters.html" title="Pavement Sign Posters">Pavement Sign Posters</a> </li><li> <a href="http://www.google.com/online-poster-printing.html" title="Photo Posters">Photo Posters</a> </li><li> <a href="http://www.google.com/pro-photo-printing.html" title="Pro Photo Printing">Pro Photo Printing</a> </li><li> <a href="http://www.google.com/giclee-printing.html" title="Giclee Printing">Giclee Printing</a> </li><li> <a href="http://www.google.com/photo-canvas-printing.html" title="Photo Canvas Printing">Photo Canvas Printing</a> </li><li> <a href="http://www.google.com/online-plan-printing.html" title="Plan Printing">Plan Printing</a> </li><li> <a href="http://www.google.com/online-document-printing.html" title="Document Printing">Document Printing</a> </li><li> <a href="http://www.google.com/online-graphic-design-service.html" title="Graphic Design">Graphic Design</a> </li><li> <a href="http://www.google.com/photo-t-shirt-printing.html" title="Photo T-Shirts">Photo T-Shirts</a> </li><li> <a href="http://www.google.com/sale-posters-banners.html" title="SALE Posters & Banners">SALE Posters & Banners</a> </li><li> <a href="http://www.google.com/van-lettering-sign-writing-bedfordshire.html" title="Van Sign Writing">Van Sign Writing</a> </li><li> <a href="http://www.google.com/photo-restoration.html" title="Photo Restoration">Photo Restoration</a> </li><li> <a href="http://www.google.com/trade-printing.html" title="Trade Printing">Trade Printing</a> </li> <li class="li-nav"><a href="http://www.google.com/sale-items.html" title="Sale Items">Sale Items</a></li> </ul> </div> Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 18, 2014 Share Posted November 18, 2014 The "Shop by Category" (aka Navigation) tree is a strange bird. It gets constructed at the oddest of times, and does not get reconstructed when it should. For example, (if you have your own server setup) create two host aliases to the same folder where CubeCart is installed. Clear the cache. Visit the storefront using the first path. The category tree will get built complete with the domain name part (usually, links are built without that part). Now visit the storefront using the second path. All the links in the Navigation still have the first domain name. So, how did CubeCart manage to think that www.google com was it's domain name? I do not have an answer. But in CubeCart's admin, Maintenance tab, clearing the cache should cause CubeCart to rebuild the category tree. (Depending on what version you have of CC, you may end up with a zero-content page after CubeCart clears the cache. It's a small bug. Just ask your browser to fetch another page.) Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted November 18, 2014 Share Posted November 18, 2014 There is no sign of your website having been hacked and looking at your site now, also no sign of what you reported. Did clearing the cache work or did you find and fix some other problem. It isnt something I have seen before either with a CubeCart site. urls for links on a website can be altered by a virus on your local PC but that wouldnt give the results that you saw either !Ian Quote Link to comment Share on other sites More sharing options...
bedfordprint Posted November 18, 2014 Author Share Posted November 18, 2014 Straight away when I've noticed it, my first move was to save .htaccess as this was my first suspect but it didn't help. so I went to maintenance and I did rebuild of everything. And it all got back to normal.. I don't know how this happened, but there are only two choicec. 1. Unattended - a very rare bug - I did not even log-in to the shop for hours before it happened but I do visit the website all the time to get the pricing. 2. It was somehow hacked - no one has the password to the website except me. The virus option is impossible as the cure wouldn't make any difference + I tried from two different PC's. Strange at least. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 18, 2014 Share Posted November 18, 2014 I will make a wild guess. Keep in mind that it is only the storefront Navigation that this happens to. CubeCart uses a couple of means to determine where it is: using the $_SERVER array and PHP functions to get the path (as opposed to how CC3/4 had to do it). This is all figured out in the file ini.inc.php. (Note: you can still add the CC3/4 $glob['storeURL'] and $glob['path'] to /includes/global.inc.php, and CubeCart will use that if present.) Somewhere out in the Internet, a web browser is showing a Google search results page, but somehow is including, inserting, overlaying, or whatever, your site. The effect is that the request is made to your IP address, but the Host header in the request says something else. Quote Link to comment Share on other sites More sharing options...
bedfordprint Posted November 18, 2014 Author Share Posted November 18, 2014 Brian, Interesting, I'm tempted to experiment with this, I'll have to study the logs to see if there is any weird referral up there. Quote Link to comment Share on other sites More sharing options...
bedfordprint Posted November 20, 2014 Author Share Posted November 20, 2014 This happened again this morning. I only had to clear cache to get it back on track. I have noticed that my google placement is dropping recently, this might be a cause of it, well I bet it is. Is there a way of stopping this? I have turned the cache off but, this is not a good solution. Quote Link to comment Share on other sites More sharing options...
SimChris Posted November 30, 2014 Share Posted November 30, 2014 Be sure to check your Google Webmaster account for crawl errors, indexing issues, warnings, etc.Be sure to submit valid site map to Google Webmaster Tools.Be sure you have told them whether you are doing an http or https site, and preference for www. vs non www in front of domain name.Be sure to check if you have dedicated IP that your reverse IP lookups are all correct (various tools online allow you to type IP and it will show pointing at your domain).These have been the most common things to check with Google "oddities". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.