WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Reformating Permalinks (5 posts)

  1. CrossX
    Member
    Posted 2 years ago #

    hello!

    I'm thinking to change my blog Permalink from:
    /%category%/%postname%.html

    to

    /%postname%.html

    Is anyone can help me with .htaccess code in the way that also the "old" links work?
    Thanks

  2. James
    Happiness Engineer
    Posted 2 years ago #

    WordPress permalinks are canonical, so they'll redirect on their own whenever you change them.

    Just out of curiosity, why add the .html?

  3. CrossX
    Member
    Posted 2 years ago #

    Just out of curiosity, why add the .html?

    Some stupid SEO tips :S

    and with .html in the end, is not working :S

    any way to remove that .html with .htaccess redirect?

  4. James
    Happiness Engineer
    Posted 2 years ago #

    Just remove it from your permalink settings. Use /%postname%/ instead.

  5. CrossX
    Member
    Posted 2 years ago #

    Thanks...

    i added also this rule:

    RewriteRule ^(.*).html$ /$1/ [L,NC,R=301]

    if anyone else needed!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags