• Resolved crossx

    (@crossx)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

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

    Just out of curiosity, why add the .html?

    Thread Starter crossx

    (@crossx)

    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?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

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

    Thread Starter crossx

    (@crossx)

    Thanks…

    i added also this rule:

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

    if anyone else needed!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reformating Permalinks’ is closed to new replies.