Results 1 to 10 of 1704

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    The 3rd party module installed (sage pay) probably does not use a zen cart page, yet calls application_top. You will probably need to exempt the 3rd party module's call back file manually or turn off automatic redirects.

    If you choose to exempt by editing, there was a post earlier in this thread on the subject. The post included which file and where in the file to edit.

    Otherwise just turn off automatic redirects (they are only needed if you constantly change you product / category titles - or are migrating an existing store with well established URLs).

    The next version will have better support for scripts calling application_top which are not coded as zen cart pages. Not really sure of the logic behind not coding these as zen cart pages (yet calling application_top)... Permanent work around will probably be optional.. Adding an addition file lookup (minor performance hit).
    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

  2. #2
    Join Date
    Jul 2007
    Posts
    45
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lhungil View Post
    The 3rd party module installed (sage pay) probably does not use a zen cart page, yet calls application_top. You will probably need to exempt the 3rd party module's call back file manually or turn off automatic redirects.

    If you choose to exempt by editing, there was a post earlier in this thread on the subject. The post included which file and where in the file to edit.

    Otherwise just turn off automatic redirects (they are only needed if you constantly change you product / category titles - or are migrating an existing store with well established URLs).

    The next version will have better support for scripts calling application_top which are not coded as zen cart pages. Not really sure of the logic behind not coding these as zen cart pages (yet calling application_top)... Permanent work around will probably be optional.. Adding an addition file lookup (minor performance hit).
    Thanks I have just turned off the redirects and that works OK
    England's 1st Juggling Shop www.oddballs.co.uk

  3. #3
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    hi Hungl

    Is there a way to add a specific word behind the rewritten category URL?

    for instance: caterory is "girls toy"

    Rewritten URL is www.mysite.com/girls-toy-c-3........

    What I want to accomplish is: www.mysite.com/girls-toy-party-supplies-c-3........

    Is there a way to add the red words above at the .htaccess file? (if that is where I should do it at)

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by twi View Post
    ... Is there a way to add a specific word behind the rewritten category URL? ...
    Yes. A couple of different ways actually.
    1. Rename your category to include what you want shown in the URL. This is the simplest solution to change the text displayed in the URL.
    2. Use the PCRE filter to replace "girls toy" with "girls toy party supplies". The PCRE filter essentially uses PHP preg_replace to change the "name" returned. While this does allow lots of flexibility if you have a large number of rules it can slow down your website (I generally use no more than five or six).
    3. Add a "defined URLs" file. This is not documented anywhere (on purpose) and requires the "global" cache to be enabled. Using this option essentially tells the module "Do not determine the text to be added to the URL, here is what you should use". Be careful when using this method to ensure your URLs are valid (no spaces, no extended character sets etc) or if you absolutely must use non conforming characters run rawurlencode over the URL first.


    More Details
    1. Simply open up the Zen Cart administrative interface and navigate to the category you wish to change. Edit the category title. This module will automatically know you made the change and handle altering the generated URLs, canonical URLs, and redirects if you have them enabled.
    2. Change the configuration setting for the PCRE filter... Adding something like "^girls toy$=>girls toy party supplies". May need to alter this a little depending upon your server. Again, the module will handle generating the new URLs, canonical URLs, and redirects if you have them enabled.
    3. Create the file "/includes/languages/english/extra_definitions/url_overrides.php". For categories add "define('CATEGORY_NAME_3_15','girls-toy-party-supplies');" where "3_15" is the full cPath for the category. For products add "define('PRODUCT_NAME_20','party-favors');" where "20" is the product ID. Make sure the "global" cache is enabled. In this mode you will need to manually update the file in the future if you wish to change the URL for a category or product defined in this file (ones not defined here are still automatically generated).


    Another Consideration
    Keep in mind depending upon your category structure, you may want to have two categories... One "girls toy" category and a sub-directory "party supplies"... If you enabled "url format: parent" and "categories as directories: short" your category URL would become "/girls-toy-party-supplies-c-3_15/party-favors-p-20". Keep in mind these settings will affect all generated URLs.
    Last edited by lhungil; 11 Oct 2013 at 07:38 PM.
    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

  5. #5
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Thanks lHungl.

    I have though about Option1. But that would make my sidebar links to the categories way too long and awkward looking.

    Option 2 is not the best since you mention it will slow down the site. In this case, I actually have a lot of sub categories that needs to be redone.
    To describe exactly my situation; I have a top category of "Party Supplies" Then numerous sub categories under "party supplies" e.g. Party supplies>Mickey Mouse.

    What I want to really do is to have www.mysite.com/mickey-mouse-party-supllies........

    I will try option 3 and see if i am able to make it work. Many thanks again.

  6. #6
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lhungil View Post
    Yes. A couple of different ways actually.
    1. Rename your category to include what you want shown in the URL. This is the simplest solution to change the text displayed in the URL.
    2. Use the PCRE filter to replace "girls toy" with "girls toy party supplies". The PCRE filter essentially uses PHP preg_replace to change the "name" returned. While this does allow lots of flexibility if you have a large number of rules it can slow down your website (I generally use no more than five or six).
    3. Add a "defined URLs" file. This is not documented anywhere (on purpose) and requires the "global" cache to be enabled. Using this option essentially tells the module "Do not determine the text to be added to the URL, here is what you should use". Be careful when using this method to ensure your URLs are valid (no spaces, no extended character sets etc) or if you absolutely must use non conforming characters run rawurlencode over the URL first.


    More Details
    1. Simply open up the Zen Cart administrative interface and navigate to the category you wish to change. Edit the category title. This module will automatically know you made the change and handle altering the generated URLs, canonical URLs, and redirects if you have them enabled.
    2. Change the configuration setting for the PCRE filter... Adding something like "^girls toy$=>girls toy party supplies". May need to alter this a little depending upon your server. Again, the module will handle generating the new URLs, canonical URLs, and redirects if you have them enabled.
    3. Create the file "/includes/languages/english/extra_definitions/url_overrides.php". For categories add "define('CATEGORY_NAME_3_15','girls-toy-party-supplies');" where "3_15" is the full cPath for the category. For products add "define('PRODUCT_NAME_20','party-favors');" where "20" is the product ID. Make sure the "global" cache is enabled. In this mode you will need to manually update the file in the future if you wish to change the URL for a category or product defined in this file (ones not defined here are still automatically generated).


    Another Consideration
    Keep in mind depending upon your category structure, you may want to have two categories... One "girls toy" category and a sub-directory "party supplies"... If you enabled "url format: parent" and "categories as directories: short" your category URL would become "/girls-toy-party-supplies-c-3_15/party-favors-p-20". Keep in mind these settings will affect all generated URLs.
    where do I enable "global" cache?

  7. #7
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by twi View Post
    where do I enable "global" cache?
    1. Log into your Zen Cart administrative interface.
    2. Select "Configuration" -> "Ultimate (SEO) URLs" from the administrative menu.
    3. Make sure "Enable SEO cache to save queries?" is set to "true".


    By default the "global" cache is enabled.
    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

  8. #8
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lhungil View Post
    1. Log into your Zen Cart administrative interface.
    2. Select "Configuration" -> "Ultimate (SEO) URLs" from the administrative menu.
    3. Make sure "Enable SEO cache to save queries?" is set to "true".


    By default the "global" cache is enabled.
    Global cache as describe is set to : "true"

    the file i created is below (file created is named "url_overrides.php"):

    <?php
    /**
    * NOTE: "global" cache NEED TO BE "TURNED ON".
    * LINE USED FOR CATEGORIES: define('CATEGORY_NAME_avenger-c-1_281','avenger-party-supplies')
    * LINE USED FOR PRODUCTS: define('PRODUCT_NAME_20','party-favors')
    * @
    * @
    */

    //Title of URL Rewrite
    define('CATEGORY_NAME_avenger-c-1_281','avenger-party-supplies')

    ------------------------
    It still doesn't overwrite the url. Can you take a look at what I did wrong?
    My category structure is: "Party Supplies Print>Avenger"
    "Party Supplies Print>etc......"

    The original SEO overwritten URL is: http://www.mysite.com/avenger-c-1_281/
    URL wanted: http:/www.mysite.com/avenger-party-supplies-c-1_281/
    (the above is a subcategory under Party Supplies Print)
    Last edited by twi; 12 Oct 2013 at 07:44 PM.

  9. #9
    Join Date
    Mar 2014
    Location
    United Kingdom
    Posts
    1
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    After looking through this forum I have not been able to find the previous thread relating to the fix for the ceon sage pay server payment I frame issue, we have the same issue and have also turned off automatic rewriting but would like to fix the issue and turn the rewriting back on. A link to the thread would be appreciated.

    Quote Originally Posted by lhungil View Post
    The 3rd party module installed (sage pay) probably does not use a zen cart page, yet calls application_top. You will probably need to exempt the 3rd party module's call back file manually or turn off automatic redirects.

    If you choose to exempt by editing, there was a post earlier in this thread on the subject. The post included which file and where in the file to edit.

    Otherwise just turn off automatic redirects (they are only needed if you constantly change you product / category titles - or are migrating an existing store with well established URLs).

    The next version will have better support for scripts calling application_top which are not coded as zen cart pages. Not really sure of the logic behind not coding these as zen cart pages (yet calling application_top)... Permanent work around will probably be optional.. Adding an addition file lookup (minor performance hit).

  10. #10
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by rmfuk View Post
    After looking through this forum I have not been able to find the previous thread relating to the fix for the ceon sage pay server payment I frame issue, we have the same issue and have also turned off automatic rewriting but would like to fix the issue and turn the rewriting back on. A link to the thread would be appreciated.
    As stated the cause is your 3rd party module is not coded as a Zen Cart page ("pages" on a Zen Cart site which use application_top.php should be coded as a Zen Cart page 98% of the time).

    While not specific to "CEON Sage Pay", the options listed in this post about 3rd party modules not integrating as a Zen Cart page (but loading application_top) apply. Not my favorite workaround, but it works.
    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

 

 

Similar Threads

  1. Ultimate Fade-In Slidehow Support thread
    By outeredge2 in forum All Other Contributions/Addons
    Replies: 158
    Last Post: 4 Feb 2017, 03:10 AM
  2. Ultimate Cross Sell [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 239
    Last Post: 17 May 2015, 03:25 AM
  3. Ultimate Content Glider [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 4 Sep 2012, 05:16 AM
  4. Re: Simple SEO URL [support thread]
    By creamcrackers in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2009, 03:02 PM

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