Forums

[resolved] Default links to files could be done better... (3 posts)

  1. copperblade
    Member
    Posted 1 year ago #

    For a long time I've wondered why wordpress creates links to files using the full URL instead of a relative URL. Today I just moved a site and had to get into the database and do something like:

    UPDATE wp_X_posts SET post_content = replace(post_content, "http://BLOG.DOMAIN/files", "/files");

    just to get all the images working again. I know in the case of blogs as subdirectories, you'll still have to have something like /BLOG/files as the default location, but subdomains only need /files which would never change even when it gets moved.

    I guess this isn't so much of a complaint as a suggestion... unless there's a reason why relative URLs break other things.

  2. copperblade
    Member
    Posted 1 year ago #

    Sorry, moving this to requests forum.

  3. Andrea_r
    team pirate
    Posted 1 year ago #

    I've wondered why wordpress creates links to files using the full URL instead of a relative URL.

    Offloading. What if your files are hosted elsewhere?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags