Forums / General Questions / Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

Views: 794

Results 1 to 3 of 3
16 Feb 2016, 8:46 PM
#1
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

Greetings,

I have no need for certain ZC functions such as the New Products or Discount Coupon pages. However, even after updating the admin settings to not show links and turning off sideboxes, I can still access these page directly via URL.

example: "www.yourdomain.com/index.php?main_page=discount_coupon"

Is there a setting I am missing in the admin to either show "Page Not Found" or redirect to index or other? If not, what would be the preferred method to do this?

:blink:

Thank you!

Experience is what you get when you don’t get what you want…

16 Feb 2016, 8:48 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

Remove or rename the corresponding foldername in /includes/modules/pages/ ... and then people hitting those pages will get a not-found response.

.
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.

16 Feb 2016, 9:34 PM
#3
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Re: Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

DrByte:

Remove or rename the corresponding foldername in /includes/modules/pages/ ... and then people hitting those pages will get a not-found response.

Thanks DrByte,

With my setup, it even redirects to the home page! Perfect...:D

Experience is what you get when you don’t get what you want…