• Hello,

    I am trying to move my old page from WolfCMS to WordPress. My links to images looks like:

    <img src="/public/images/my_image.jpg" /> ..and in WolfCMS links like that was automatically converted to: http://my_domain_name/public/images/my_image.jpg

    How can I get the same result in WordPress?
    I do not want to convert every single link.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Are you working solely within the WordPress dashboard or do you have experience/access to the php files as well?

    Thread Starter tikky_poland

    (@tikky_poland)

    I am new to WordPress but I have experience in PHP and I have access to my files

    Hi ,
    I think that you can run a SQL sentence in PhpmyAdmin or other DB manager to massive change the links in the WordPress.

    check the REPLACE statement in SQL.

    For in php links ( like templates and others ) you can change it massive in multiple files with some editor like NotePad++

    Thread Starter tikky_poland

    (@tikky_poland)

    Yes, of course, but this is ralated to SQL.
    I am looking a solution in WordPress without changin the links.
    Maybe it is possible in WP, plugin, or mod_rewrite?

    There’s a plugin called Real-Time Find and Replace that allows you to swap out text (and code) on-the-fly with no permanent changes to theme files, plugins, or post content. You could use it to modify the links as long as they follow a particular pattern you can match.

    Full disclosure: I’m the author of this plugin so I may be biased as to its usefulness 🙂

    Thread Starter tikky_poland

    (@tikky_poland)

    Superb, your plugin “Real-Time Find and Replace” seems to be what I was looking for 🙂 Thank you.

    Just one more question – whether the use of your plugin will have a big impact on performance?

    If you use a caching plugin there shouldn’t be any performance hit at all as the changes the plugin makes will be cached.

    If you don’t use a caching plugin, you still shouldn’t notice any performance hit. I’ve got a few dozen rules running myself.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to add domain name to link’ is closed to new replies.