Support » Plugins » Mass Edit Links

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Louno

    (@louno)

    Sorry, i made a mistake,
    i need to edit PARTS of the link, so for example
    instead of

    http://www.sitename.com/category1/product1.html

    I need to change that url for something like this

    http://www.sitename.com/category2/product1.html

    so the plugin needs to look for a variable : “category1”
    and replace it with : “category2”

    The reason is simple, its because if i have to change all the url manually it would still be a very long process, where as if i can tell the plugin to just look for the part i want to change and change it in all links then that would save alot of time as ill only have to do this operation 2 or 3 time and it will fix all my links

    I know this is an old post, but I just solved the problem for myself and for the sake of future searchers, I figure I’ll post my solution here too.

    1. I downloaded my wordpress database and saved it as a backup.

    2. I copied the backup to another location and opened it in a text editor (text wrangler in my case).

    3. I searched for the old domain name, then used the ‘replace all’ command to replace it with the new domain name. It found several thousand instances of the old domain and replaced them all.

    4. In PHPmyAdmin, I dropped all the tables then imported my modified database file. All of my links were fixed.

    Thread Starter Louno

    (@louno)

    that would work… but its not really “elegant” 😛
    thanks for sharing though

    Hey, do what you gotta do, right! 🙂

    What would be the elegant solution?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mass Edit Links’ is closed to new replies.