Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Zen Cart's "Page Not Found" doesn't come up for me...

Zen Cart's "Page Not Found" doesn't come up for me...

Locked

Started by flipjargendy on 9 Aug 2007, 4:01 PM · Views: 1,449

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Aug 2007, 4:01 PM
#1
flipjargendy avatar

flipjargendy

New Zenner

Join Date:
Jun 2007
Posts:
87
Plugin Contributions:
0

Zen Cart's "Page Not Found" doesn't come up for me...

Zen Cart has it's own page that you can make say something like "This page doesn't exist... blah blah"

However, it doesn't work for me. I just get the servers page not found page.

I have under Config>Define Page Status i have it set on. Any ideas?

Thank you :-)

9 Aug 2007, 8:53 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Zen Cart's "Page Not Found" doesn't come up for me...

I am facing the same problem
I also did a search for the text define_page_not_found.php in all the files in the cart and could not get any occurence although I have this file placed at
\includes\languages\english\html_includes and \includes\languages\english\html_includes\classic
So that made me wonder as to how define_page_not_found.php is getting called when I invoke a page which is not present in my website
Thanks

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

10 Aug 2007, 11:24 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Zen Cart's "Page Not Found" doesn't come up for me...

In the /extras folder is a sample .htaccess file that you can use to enable the page-not-found.

If you already have a .htaccess file in your store folder, then merge the contents of the sample into your existing one.

Be sure to set the proper URL and/or path if necessary.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Aug 2007, 6:03 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Zen Cart's "Page Not Found" doesn't come up for me...

superprg:

Thanks
I copied .htaccessfile to store folder and it has
ErrorDocument 404 http://blrkec42069d/index.php?main_page=page_not_found
Still, its not working...

What's "blrkec42069d" ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Aug 2007, 8:21 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Zen Cart's "Page Not Found" doesn't come up for me...

DrByte:

What's "blrkec42069d" ?

Ok thats my localhost....

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

13 Aug 2007, 10:09 PM
#7
flipjargendy avatar

flipjargendy

New Zenner

Join Date:
Jun 2007
Posts:
87
Plugin Contributions:
0

Re: Zen Cart's "Page Not Found" doesn't come up for me...

Superprg, if you goto:** Admin->Configuration->My Store->Missing Page Check ... set to page-not-found (0)** and it should work. But now there is another problem...

How do I get the error page to display when someone types in http://webSite/wrongPage. It only works when I type in http://webSite/index.php?main_page=wrongPage.

Any ideas?

Thanks for the help.

13 Aug 2007, 11:05 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Zen Cart's "Page Not Found" doesn't come up for me...

flipjargendy:

How do I get the error page to display when someone types in http://webSite/wrongPage. It only works when I type in http://webSite/index.php?main_page=wrongPage.That's done via the .htaccess, which I mentioned earlier:
DrByte:

In the /extras folder is a sample .htaccess file that you can use to enable the page-not-found.

If you already have a .htaccess file in your store folder, then merge the contents of the sample into your existing one.

Be sure to set the proper URL and/or path if necessary.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.