• Resolved azn_romeo_4u

    (@azn_romeo_4u)


    Adding .html at the end of custom base permalink under “products” always adds a forward slash at the end. How do I make it so that, all the products have .html at the end of the URL?

    I did some searches, but I could not find the answer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    Thank you for reaching out!

    I understand that you’d like to add .html at the end of URLs on your site.

    I’m not aware of a way to do this – .PHP template files are used and the system wouldn’t be able to find an actual file/page unless the appended .HTML is not actually a file extension but just a made-up addition.

    Can you please specify why you’d want to append a fake .html at the end of the links?

    Thank you!

    Thread Starter azn_romeo_4u

    (@azn_romeo_4u)

    I have another CMS that adds .html to the end of all their URL’s. It just uses .htacess to do it. It’s simlar to how wordpress does them. Under Permalinks > common settings > custom structure, I just use

    /%year%/%monthnum%/%day%/%postname%.html

    And the wordpress easily adds a .html at the end of the URL. But when I try to do the same thing under “Product permalinks”, it doens’t work. Adds a forward Slash.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    I have another CMS that adds .html to the end of all their URL’s. It just uses .htacess to do it. It’s simlar to how wordpress does them. Under Permalinks > common settings > custom structure, I just use

    /%year%/%monthnum%/%day%/%postname%.html

    And the wordpress easily adds a .html at the end of the URL. But when I try to do the same thing under “Product permalinks”, it doens’t work. Adds a forward Slash

    It is possible to append .HTML to your links as specified here:

    https://wpflux.com/14830-add-html-extension-wordpress-permalink-urls/

    I’m not aware of a way to remove the slash/make sure the same happens to product permalinks though since this is not an intended use case.

    If that doesn’t work – you might need code customization.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    We haven’t heard from you in a while so I’ll be marking this thread as resolved.

    Feel free to open a new thread and link to this one if you have further questions though.

    Have a wonderful day ahead!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect all product pages to .html?’ is closed to new replies.