Support » Fixing WordPress » import not preserving links

  • I have a directory of .htm files on my computer, and all the links contained within them are consistent and navigate fine whenever they are found in the same directory.

    After I import them into WordPress though, the links no longer work because WP keeps adding a section to the URL depending on which page you are CURRENTLY on when you click a link.

    For example, if I’m currently on page A (which is located at URL and I click on a link to page B (whose URL is wordpress is throwing in an extra piece to the slug like so:

    Or if I’m at location C clicking a link to B it generates as if whatever page I’m currently on should have anything at all to do with the page I’m linking to. And so every link on my site ends up going to the homepage because the domains the links point towards don’t exist.

    Is there a simple way to tell wordpress not to add that extra piece of URL?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Due to the very many manners that themes or plugins, including your added html could cause issues to arise, it would be beneficial on your part to provide specific site links (not examples).

    Nevermind I figured out a solution.

    Next, I cannot figure out how to create a page and edit its extension simply from html to htm.

    the permalink I set to custom as “/%category%/%postname%.HTM” but yet WP makes them all HTML anyway?

    Most of my internal links end in .htm#___ with a #code that opens with the view halfway down the page. Miraculously, these .htm# links work in spite of WP creating them all with .html But the links without the # do not.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘import not preserving links’ is closed to new replies.