Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Who's Online problem


Recommended Posts

I have this weird problem. When I look in Tools->Who's Online I see urls to images that doesn't exist. Here is an example:


00:11:43 0 Guest <ip> 03:48:58 03:54:51 /images/img_tal3.gif

00:52:09 0 Guest <ip> 03:08:32 03:51:15 /images/cont_corn_tc.gif


Two days ago everything was OK and I saw urls to products. I was doing 2 fixes when this started happening. I added 1 button to shoping_cart.php and I added 1 line to .htaccess (ErrorDocument 404 /index.php) - because I saw 30 deadlinks in google webmaster tools. This is my .htaccess:


Options +FollowSymLinks

RewriteEngine On

RewriteBase /


RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}


ErrorDocument 404 /index.php

Link to comment
Share on other sites

After adding that line to .htaccess I saw in google webmaster tools that dead links (404) increased from 39 to 44. So I changed line from:

ErrorDocument 404 /index.php


ErrorDocument 404 http://www.mywebsiteurl.com


and I think that problem is solved. Now I see normal urls in Tools->Who's Online again and I hope that dead links in google webmaster tools will disappear.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...