If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / with ultimate seo Url,how to change the ez-page uri ?

with ultimate seo Url,how to change the ez-page uri ?

Started by whywell on 17 Jan 2013, 7:03 AM · Views: 2,048

Results 1 to 2 of 2
17 Jan 2013, 7:03 AM
#1
whywell avatar

whywell

New Zenner

Join Date:
Jan 2013
Posts:
2
Plugin Contributions:
0

Post #1 by whywell

I have enable the ultimate Seo Url addon. and i add a new ez-page named payment, the new ez-page's url is like this:-ezp-8.html, it's so ugly. i want to change it to friendly url such as payment.html, how to do that?

17 Jan 2013, 2:40 PM
#2
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #2 by lhungil

whywell:

I have enable the ultimate Seo Url addon. and i add a new ez-page named payment, the new ez-page's url is like this:-ezp-8.html, it's so ugly. i want to change it to friendly url such as payment.html, how to do that?
The "-ezp-8" needs to be there so Zen Cart knows your request was for an EZ Page with an ID of 8.

Instead of using the Zen Cart code to generate "index.php?main_page=page&id=8" as the URL, "Ultimate SEO URLs" (if enabled to rewrite "page") simply generates a shorter version "-ezp-8", prepends the page title "payment", and optionally adds .html to the end (based upon your settings). The rest of the URLs parameters (if any) are left in the URL.

If you need to make the URL "prettier" you have a few options.

  1. Create the page as a Zen Cart page (not EZ-Page). Add the new page's internal name to the list of pages to rewrite. This will accomplish what you want (but will be a little work).
  2. Change the anchor to a "-z-" (shortest possible form). This requires modifying the anchor list (in the class file) and modifying the rewrite rules to trigger on "-z-" instead of "-ezp-". This is really not any "prettier" just shorter.
  3. Look into using "CEON URI Mapper" (uses an additional SQL table / lookup) instead of "Ultimate SEO URLs" (keeps the data in the URL). Keep in mind "CEON URI Mapper" does not automatically generate URLs in bulk for you (including imports of multiple products to the database). You pay for a commercial version / module including a tool for generating URLs. This will accomplish what you want (but may have some additional upfront and maintenance costs).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker