Migratiting a static site into WP, keeping URLs intact

Community Forums Forums General Discussion Migratiting a static site into WP, keeping URLs intact

This topic is: not resolved

Tagged: , ,

This topic contains 2 replies, has 3 voices, and was last updated by  Liz 1 month, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #87230

    Athen
    Participant

    Hello everyone, I’m new on Genesis :)

    I’m converting a static html site into WP, and I need to keep the old url’s intact according to seo-reasons.

    I’m using Custom Post Types for a listing directory, all is good.

    I just need to remove the base slug of the “products” CPT, so I can make url’s look like this: mydomain.com/cars instead of mydomain.com/products/cars . I cannot use redirection because of seo-reasons.

    Additionally I need to keep the .html ending on all items as well.

    Anybody who can point me in the right direction?

    Tried using a permalink plugin to make permalinks for my CPT as this “/%postname%.htm./ and that breaks the removal of the slug, but adds the .html

    I would like to do this in functions :)


    Bw. Athen

    #99140

    Susan
    Moderator
    Post count: 7991

    Did you ever get this figured out? I’d be happy to escalate if you are still looking for resolution.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #110466

    Liz
    Participant
    Post count: 41

    I am also migrating a site with HTML pages and a WordPress blog (using HTML appended to all permalinks :( ) to an all-Wordpress site. The blog posts are all in a subfolder called Blog so each permalink is http://sitename.com/blog/postname.html.

    I really do not want to continue that HTML permalink naming convention but also don’t want client to have links to existing posts become broken and produce errors. I was hoping to export all of her posts using WordPress Export tool to an XML file (with comments), install WordPress at the root level of her site, erasing all the existing HTML static pages, then import all the posts back in with the category of “blog” and same post name but without HTML.

    wouldn’t it be possible to add some lines to htaccess and redirect all http://sitename.com/blog/*.html to http://sitename.com/blog/*? Can you even do redirection if the original file is no longer there?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.