Forums / Basic Configuration / different uri to the same page

different uri to the same page

Views: 1,662

Results 1 to 4 of 4
12 Jul 2016, 6:59 PM
#1
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

different uri to the same page

Hi folks,
today's question is:

How is it possible that

https://www.acqu atua.it/pulitore-resine-addolcitore/recensioni?reviews_id=955
and
https://www.acqu atua.it/pulitore-resine-addolcitore/recensioni

brings me to the exactly the same page?

CMS mistery?
Ciao ciao

enzo

12 Jul 2016, 7:10 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: different uri to the same page

Clearly you're using a URL-Rewriter, which is not part of Zen Cart.

What were you expecting that URL to take you to?
Given the way URL parameters work, I'm not surprised that they show the same page. The "?reviews_id=955" is simply a parameter. It is still the same page, unless you've got logic on that page to change the content based on the parameter.
Everything after the ? is just parameters, for the same page.

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

12 Jul 2016, 8:47 PM
#3
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: different uri to the same page

DrByte:

Clearly you're using a URL-Rewriter, which is not part of Zen Cart.

What were you expecting that URL to take you to?
Given the way URL parameters work, I'm not surprised that they show the same page. The "?reviews_id=955" is simply a parameter. It is still the same page, unless you've got logic on that page to change the content based on the parameter.
Everything after the ? is just parameters, for the same page.
Thanks.
Yes I am using CEON uri mapping.
I was expecting that /pulitore-resine-addolcitore/recensioni?reviews_id=955 would return a not found.

From what you said I understand that
/pulitore-resine-addolcitore/recensioni?reviews_id=955
ie exactly equal to
/pulitore-resine-addolcitore/recensioni
while
/pulitore-resine-addolcitore/recensione?reviews_id=955
Takes to the review 955

The learning process is endless.

Thanks for teaching me
Ciao ciao
enzo

12 Jul 2016, 9:18 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: different uri to the same page

enzo-ita:

The learning process is endless.
For me too! !!!

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