Page 167 of 168 FirstFirst ... 67117157165166167168 LastLast
Results 1,661 to 1,670 of 1674
  1. #1661
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    PHP 8.4, ZC 2.1.0, Template: ZCA Bootstrap 3.7.5, IH 5.3.5, Ultimate SEO 3.1.2

    Is there a way to prevent Ultimate SEO from rewriting the names of images?

  2. #1662
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,342
    Plugin Contributions
    94

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by retched View Post
    PHP 8.4, ZC 2.1.0, Template: ZCA Bootstrap 3.7.5, IH 5.3.5, Ultimate SEO 3.1.2

    Is there a way to prevent Ultimate SEO from rewriting the names of images?
    As indicated at the top of USU's readme:

    Ensure that any non-PHP files for your site don't include these (-p-, -m-, -pi-, -pr-, -pri-, -prw-, -aaq-, -ezp- or -c-) character strings! They'll be rewritten, too, unfortunately!

  3. #1663
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lat9 View Post
    As indicated at the top of USU's readme:

    Ensure that any non-PHP files for your site don't include these (-p-, -m-, -pi-, -pr-, -pri-, -prw-, -aaq-, -ezp- or -c-) character strings! They'll be rewritten, too, unfortunately!
    Oh christ. That explains why this name breaks:

    /bmz_cache/c/cb01-p-109png.image.29x40.png

    That's the name generated from Image Handler. Is there a way to exclude the bmz_cache directory? Or is it a hard no? (I've already renamed the source file and directory but still was just curious.)

  4. #1664
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,342
    Plugin Contributions
    94

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by retched View Post
    Oh christ. That explains why this name breaks:

    /bmz_cache/c/cb01-p-109png.image.29x40.png

    That's the name generated from Image Handler. Is there a way to exclude the bmz_cache directory? Or is it a hard no? (I've already renamed the source file and directory but still was just curious.)
    I'm sure there is, but .htaccess directives are kind of like JCL ... I'd need to search for an example that's close to what you want to use as a basis.

  5. #1665
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lat9 View Post
    I'm sure there is, but .htaccess directives are kind of like JCL ... I'd need to search for an example that's close to what you want to use as a basis.
    Would this happen to work?

    Code:
    # Exclude bmz_cache for ImageHandler
    RewriteCond %{REQUEST_URI} ^/bmz_cache/ [NC]
    RewriteRule .* - [L]

    Running the full .htaccess through an .htaccess tester (https://htaccess.madewithlove.com)

    I get the following:

    The URL:
    https://www.justuptowngames.com/universus-cowboy-bebop-c-2_24/twinkle-murdock-p-847.html

    Translates to:
    https://www.justuptowngames.com/index.php?main_page=product_info&products_id=847&cPath=2_24&

    Which is the normal behavior.

    Translating:
    https://www.justuptowngames.com/bmz_cache/c/cb01-p-109png.image.88x120.png

    Before the change above yields:
    https://www.justuptowngames.com/index\.php?main_page=product_info&products_id=109&

    (which explains why the <img> tag breaks and clicking on the source in my browser inspect tab takes me to another product page)

    But adding the lines above to the area just under the # Start Ultimate (SEO) URL's section (but before the RewriteRules of the same) makes it leave it alone.

  6. #1666
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,342
    Plugin Contributions
    94

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by retched View Post
    Would this happen to work?

    Code:
    # Exclude bmz_cache for ImageHandler
    RewriteCond %{REQUEST_URI} ^/bmz_cache/ [NC]
    RewriteRule .* - [L]

    Running the full .htaccess through an .htaccess tester (https://htaccess.madewithlove.com)

    I get the following:

    The URL:
    https://www.justuptowngames.com/univ...ock-p-847.html

    Translates to:
    https://www.justuptowngames.com/inde...47&cPath=2_24&

    Which is the normal behavior.

    Translating:
    https://www.justuptowngames.com/bmz_...age.88x120.png

    Before the change above yields:
    https://www.justuptowngames.com/inde...oducts_id=109&

    (which explains why the <img> tag breaks and clicking on the source in my browser inspect tab takes me to another product page)

    But adding the lines above to the area just under the # Start Ultimate (SEO) URL's section (but before the RewriteRules of the same) makes it leave it alone.
    Nice one!

    I'm on the fence as to whether/not to include that in USU's distributed .htaccess file.

  7. #1667
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lat9 View Post
    Nice one!

    I'm on the fence as to whether/not to include that in USU's distributed .htaccess file.
    I would include it commented out with instructions that "If you notice some of your images being processed through Image Handler 5 isn't working, try uncommenting these two lines out."

  8. #1668
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,342
    Plugin Contributions
    94

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by retched View Post
    I would include it commented out with instructions that "If you notice some of your images being processed through Image Handler 5 isn't working, try uncommenting these two lines out."
    Sound like a plan. Would you be willing to create a PR on USU's GitHub? https://github.com/lat9/usu

  9. #1669
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by lat9 View Post
    Sound like a plan. Would you be willing to create a PR on USU's GitHub? https://github.com/lat9/usu
    Will do in a bit. I want to make sure this covers both the Image Handler and main images directory.

  10. #1670
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by retched View Post
    Will do in a bit. I want to make sure this covers both the Image Handler and main images directory.
    And done. (Submitted as a PR)

    Code:
    # Exclude /bmz_cache for ImageHandler
    RewriteCond %{REQUEST_URI} ^/bmz_cache/ [NC]
    RewriteRule .* - [L]
    In short, if the REQUEST_URI that starts with /bmz_cache/ (aka the main directory of ImageHandler's cache) is found, regardless of casing (the [NC]), do nothing with it... and STOP searching for more rule matches ([L]).

    Code:
    # Exclude /images directory in general
    RewriteCond %{REQUEST_URI} ^/images/ [NC]
    RewriteRule .* - [L]
    In short, if the REQUEST_URI that starts with /images/ is found, ZenCart's main primary image directory, regardless of casing (the [NC]), do nothing with it... and STOP searching for more rule matches ([L]) .

    It gets messy after this point if people put their images in weird, non-standard image directories.
    Last edited by retched; 30 Jan 2025 at 12:25 AM.

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR