Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jun 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by DrByte View Post
    I'd be inclined to suspect something "else" in your .htaccess besides just the rewrites.
    ...
    All the additional "pages" have the full quota of supporting files and I could not identify any issues with the IE stylesheet rules.

    So I then removed everything in my htaccess file and then started to rebuild it. The "something else" was:
    ErrorDocument 404 http://www.iangrantofedinburgh.com/page_not_found.php
    Removing this, and only this, had solved the problem with IE, Firefox and Opera. I then replaced it with
    ErrorDocument 404 /page_not_found.php
    ... and the problem remains solved, but I wonder why?

    Many thanks for your help

  2. #12
    Join Date
    Jun 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by DrByte View Post
    I'd be inclined to suspect something "else" in your .htaccess besides just the rewrites.
    ...
    All the additional "pages" have the full quota of supporting files and I could not identify any issues with the IE stylesheet rules.

    So I then removed everything in my htaccess file and then started to rebuild it. The "something else" was:
    ErrorDocument 404 http://www.iangrantofedinburgh.com/page_not_found.php
    Removing this, and only this, had solved the problem with IE, Firefox and Opera. I then replaced it with
    ErrorDocument 404 /page_not_found.php
    ... and the problem remains solved, but I wonder why?

    Many thanks for your help

  3. #13
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by stillrowing View Post
    Rewrite rules below.

    I have :
    1. altered site so that all internal links operate without the htaccess rewrites
    2. temporarily turned off the rewrite rules

    No change in who online: page_not_found is still being recorded for all IE hits and for all Firefox/Opera hits on pages with product listing.

    Code:
    # html pages now incorporated in zen-cart
    RewriteRule ^index_about\.html$ index.php?main_page=index_about_ig
    RewriteRule ^index_qc\.html$     index.php?main_page=index_qc
    RewriteRule ^index_lk\.html$    index.php?main_page=index_lk
    RewriteRule ^price_list\.html$    index.php?main_page=pricelist
    RewriteRule ^cw\.html$            index.php?main_page=page_2
    RewriteRule ^tos\.html$         index.php?main_page=page_3
    RewriteRule ^returns\.html$     index.php?main_page=page_4
    RewriteRule ^contact_us\.html$    index.php?main_page=contact_us
    RewriteRule ^heraldry\.html$    index.php?main_page=heraldry
    RewriteRule ^hy_bs\.html$        index.php?main_page=hy_bs
    RewriteRule ^hy_cb\.html$        index.php?main_page=hy_cb
    RewriteRule ^hy_oa\.html$        index.php?main_page=hy_oa
    RewriteRule ^engraving\.html$    index.php?main_page=engraving
    RewriteRule ^en_pd\.html$        index.php?main_page=en_pd
    RewriteRule ^en_mg\.html$        index.php?main_page=en_mg
    RewriteRule ^en_he\.html$        index.php?main_page=en_he
    RewriteRule ^en_hy\.html$        index.php?main_page=en_hy
    RewriteRule ^en_cb\.html$        index.php?main_page=en_cb
    RewriteRule ^en_rg\.html$        index.php?main_page=en_rg
    RewriteRule ^en_cw\.html$        index.php?main_page=en_cw
    RewriteRule ^prin_th_ck\.html$    index.php?main_page=prin_th_ck
    RewriteRule ^prin_th_th\.html$    index.php?main_page=prin_th_th
    RewriteRule ^prin_th_za\.html$    index.php?main_page=prin_th_za
    RewriteRule ^prin_th_ac\.html$    index.php?main_page=prin_th_ac
    RewriteRule ^prin_th_ag\.html$    index.php?main_page=prin_th_ag
    You cannot use RewriteRule directives without including this line first: RewriteEngine ON
    - by default it is OFF

    Without that line you will get strange things happening, such as what has been described.

    It is also customary to use a full URL for redirecting to:
    http://yourdomain.com/index.php?main...index_about_ig


    You do not normally need to setup anything special for 404 pages. Hosters usually have automatic redirection to an 'shtml' page -- which you can find out more from your Hoster -- but Zen Cart includes code for using a default, ZC supplied 404 page.
    Last edited by Website Rob; 28 Aug 2007 at 08:52 PM.

  4. #14
    Join Date
    Jun 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by Website Rob View Post
    You cannot use RewriteRule directives without including this line first: RewriteEngine ON
    - by default it is OFF

    You do not normally need to setup anything special for 404 pages. Hosters usually have automatic redirection to an 'shtml' page --
    RewriteEngine On is in place - I just did not include that in my summary.

    Without the 404 redirect line I was getting the standard Apache page

  5. #15
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by stillrowing View Post
    Without the 404 redirect line I was getting the standard Apache page
    Not sure what you mean by that?

    And don't forget, use a full URL like I mentioned previously, instead of the short form you use now.

    RewriteRule ^index_about\.html$ http:/yourdomain.com/index.php?main_page=index_about_ig

  6. #16
    Join Date
    Nov 2006
    Location
    Quebec, Canada
    Posts
    32
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    I'm having the same issue. Any real user online will appear as being on the page_not_found except for spiders.


    For the info, the whos_online page will work just fine if I remove the ErrorDocument 404 line but then I get default Apache error page...

    Here's the content of my .htaccess

    Code:
    # -FrontPage-
    
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName www.anaddondomain.com
    
    
    
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mysite.(.*)
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
    
    
    
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://mysite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3)$ - [F,NC]
    
    
    
    ErrorDocument 404 http://www.mysite.com/index.php?main_page=page_not_found
    Note that I've removed Frontpage extensions a while ago from my server but since I almost know nothing about .htaccess files, I just let the line there. If anyone could tell me what's wrong, that would be greatly appreciated!

    Again, I have no clue about what those codes all mean except for the FollowSymLinks and the ErrorDocument 404. If someone feels in the mood to explain it to me or suggest that I delete unnecessary content, I'll be glad to try any suggestions so that I can get the whos_online page working again!

  7. #17
    Join Date
    Jun 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    Quote Originally Posted by Fred9V View Post
    I'm having the same issue. Any real user online will appear as being on the page_not_found except for spiders.


    For the info, the whos_online page will work just fine if I remove the ErrorDocument 404 line but then I get default Apache error page...
    Re-writing the ErrorDocument line to read as below solved my problem:

    ErrorDocument 404 /index.php?main_page=page_not_found

  8. #18
    Join Date
    Nov 2006
    Location
    Quebec, Canada
    Posts
    32
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    I'm afraid this solution doesn't work for me...

    Anyone else?

  9. #19
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Who's Online shows everyone on page_not_found

    wow this just started to happen to me for no reason and I fixed using the advice from stillrowing. thank you.

    The question now is why did it start

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's Online shows everyone on page_not_found

    What version of Zen Cart are you running?

    Clean install or an Upgrade?

    How did you install? How did you Upgrade?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Who's Online shows that my customers are on /images/
    By mugshot in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2009, 01:56 PM
  2. Who's Online now shows everyone with server ip address????
    By njsparks in forum Basic Configuration
    Replies: 1
    Last Post: 6 Feb 2009, 08:30 PM
  3. Who's Online Shows all customers with things in their Cart.
    By buyashed in forum General Questions
    Replies: 1
    Last Post: 6 Jun 2008, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg