CrazyEngineers
  • How to change wordpress permalink structure without changing old URLs?

    Kaustubh Katdare

    Kaustubh Katdare

    @thebigk
    Updated: Oct 17, 2024
    Views: 1.0K
    WordPress has become popular content management system on the Internet and it's quite webmaster friendly. The system allows changing of URL structure with a click of a button. So if you want search engine friendly URLs, you just have to go to the Settings -> Permalinks option and then describe the format in which you want the URLs to be formatted. I've done that before but the real challenge lies in changing the permalink structure without affecting the older links that are indexed by search engines like Google already. Here's an example of what I'm trying to achieve -

    Current URL: domain.com/this-is-mypost/

    Let's say we have hundreds of such posts with URL formatted like that mostly /%postname%/

    Now if we change this URL structure to say -

    New URL: domain.com/45345/this-is-my-post/ , that is /%post_id%/%postname%/ then that changes the URL format of the old URls as well.

    I'm wondering if there's a way to ensure that only new URLs are created with the new format and the old URLs remain intact.

    Does anyone know how to do that?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Harish Kotra

    MemberNov 23, 2012

    Well, Never tried with messing WordPress coding for such issues and always took care of the best URL possible while creating my blogs. But after you asked I made a quick research to see if it is possible and found something pretty much useful for what you have stated - a plugin!

    It is named Advanced Permalinks - #-Link-Snipped-#

    The plugin works exactly the way you needed in the requirement.

    I read on a blog that it breaks the pagination of the blog. So why not try the following plugin

    The Simple 301 Redirect Plugin by Scott Nelle - #-Link-Snipped-#

    If you have a sitemap (which you should) – manually reindex it. You can also do this in Google webmaster tools under Optimization > Sitemaps > select sitemap > resubmit.
    Eventually, when your site gets crawled again by Google, it will fix the links. There is no determined set of time on how long it will take. Just be patient.

    #-Link-Snipped-#



    Good Luck 😀
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberNov 24, 2012

    I am not a wordpress expert, but I have implemented same thing on oscommerce

    Here is what i had done

    Write a function in wordpress that will modify links formations and create them according to your needs

    Then simply add some url rewrite rules in .htaccess

    I guess this will work, not sure if in wordpress it is easy to do
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register