WordPress.org

Forums

[resolved] Extension rename to .aspx (8 posts)

  1. Hartech Softworks
    Member
    Posted 3 years ago #

    Hi forumers,

    Not sure about this, a client would like to preserve their old links. The client requests that the new pages in WordPress retain the .aspx extension.

    Is this possible or would they be requested to do a redirect from the old page to a new page ?

    Any help is appreciated, thanks.

  2. Pioneer Web Design
    Member
    Posted 3 years ago #

    No that is not possible (with WP), use 301 redirect rules to redirect old links to new.

  3. Hartech Softworks
    Member
    Posted 3 years ago #

    Thanks Seacoast, renaming extensions to .html is possible if I am not mistaken, why is it not the same with .aspx ?

  4. Pioneer Web Design
    Member
    Posted 3 years ago #

    if I am not mistaken

    You are.

  5. Brandon Kraft
    Happiness Engineer
    Posted 3 years ago #

    For posts, you can do this in the Settings->Permalink settings. On the custom option, you can have something like /%postname%.aspx and have it work.

    For pages, you'd need to have some custom coding to change the permalink rewrite to add the .aspx. I haven't tried it so don't have a good suggestion for you. There was an old, old plugin that changed page permalinks to html; however, there has been some reported issues with parent pages, so that probably isn't the best route.

  6. Pioneer Web Design
    Member
    Posted 3 years ago #

    use 301 redirect rules to redirect old links to new.

    this will be the best option, WP, plugins, themes, work poorly outside of basic permalnks

  7. Brandon Kraft
    Happiness Engineer
    Posted 3 years ago #

    Seacoast is right though. Redirects will be best, even if it is actually possible to do otherwise via WP. If you ever migrate away from WordPress to, say, a PHP-based static site, having .aspx would cause headaches.

    Might as well take care of it now.

  8. Hartech Softworks
    Member
    Posted 3 years ago #

    thanks for the tips, I have advised the client against the benefits, some clients just won't listen.

    Brandon, thanks for that, tested that on a fresh installation and it works fine. Will figure our a workaround for pages.

Topic Closed

This topic has been closed to new replies.

About this Topic