WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Reformating Permalinks

[Resolved] Reformating Permalinks

  • 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

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

    Just out of curiosity, why add the .html?

    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

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

    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 ‘[Resolved] Reformating Permalinks’ is closed to new replies.
Skip to toolbar