Is it possible to make .htm in wordpress URLs? Both blog posts and pages.

I have tried many different plugins, but they are not doing exactly what i need.

For example:

I want to create a page site.com/pagename.htm

What most of these plugins do is this:

They create a page site.com/pagename-htm then redirect or canonicalize to site.com/pagename.htm

So it looks like it is solving it, but not really. So is there are way to create the .htm without using redirects or canonicals? I'm willing to pay for help.

Posted Apr 10, 2022, 4:50 PM UTC

015
nolo_meDeveloper/Designer•

First I have to ask: why? Why would you want to take a system that was set up to create good URLs and deliberately make it generate bad URLs?

10
Spring555OP•

Recovering an old site and I need to keep the old structure

-5
nolo_meDeveloper/Designer•

Why not take the opportunity to redirect the old URLs to new, clean ones? This is like hitching up a horse to a car.

9
Spring555OP•

It doesn't suit my needs unfortunately. I wish it did

-5
nolo_meDeveloper/Designer•

What do you mean by "it doesn't suit my needs"? You're asking for stuff that flat out doesn't make sense, which is usually a sign of settling on a solution based on a misapprehension somewhere down the line.

7
[deleted]•

[deleted]

0
Spring555OP•

Thanks for replying. I sent you a dm.

1
r-daddy•

Most themes will have an option to add raw code, you can just drop your html there. Another option that comes to mind is create a folder inside your WordPress installation and make that html the index.html of that folder

0
vegasgreg2Designer/Developer•

Just add .htm in the WP permalink settings.

0
Spring555OP•

I have done that. It fixes it only for the blog posts, but not for the regular pages. Do you know what I can do to fix that?

1