0
Welcome Guest! Login
0 items Join Now

absolute path - maybe be a WP issue (?)

    • Kit's Avatar
    • Kit
    • Newbie
    • Posts: 7
    • Thanks: 0

    absolute path - maybe be a WP issue (?)

    Posted 11 years 1 month ago
    • Hello
      I am not getting any response from teh WP forum on my problem - maybe someone know the answer here? I am using a RT them template for a Wordpress site and everything like the path to an image(s) is all abolute pathes - this will be an issue when we make this live - is there a global setting to have everything a relative path in WP?

      thanks
      Rob
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22306
    • Thanks: 3229
    • messin' with stuff

    Re: absolute path - maybe be a WP issue (?)

    Posted 11 years 1 month ago
    • When you say "everything like the path to an image(s) is all abolute pathes"... what's "everything"...??

      I mean... nothing ever is an absolute path, ya know... cause WordPress and WordPress things (plugins, themes, etc) weren't designed JUST for your URL... so, it's all always relative...

      under Settings > General you have 2 fields:

      WordPress Address (URL) and Site Address (URL)

      generally speaking, they should be the same domain or IP... so, RIGHT before you migrate from a test server or space to your production URL you shuold change those fields, save and exit... this WILL break your site until it's moved to that new URL...

      Or, after migrating, you can override those fields in your config.php -- more on that here: codex.wordpress.org/Changing_The_Site_URL

      That last bit is useful if you, like, want to set the production URL in those fields but then still work on the site in the test environment; you put your test environment URL as an override in config.php... then when you move to production you can just remove those lines from your config.php and your previously populated production URL values take over.
    • Last Edit: 11 years 1 month ago by Matt.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Kit's Avatar
    • Kit
    • Newbie
    • Posts: 7
    • Thanks: 0

    Re: absolute path - maybe be a WP issue (?)

    Posted 11 years 1 month ago
    • Thank you for your reply

      for instance - When using RokSprocket and uploading an image to use in the "slideshow" - it creates an absolute path to the image - as does everything I do - pages etc

      (screenshot)
      Thanks
      Rob
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22306
    • Thanks: 3229
    • messin' with stuff

    Re: absolute path - maybe be a WP issue (?)

    Posted 11 years 1 month ago
    • I'm gonna wager a bet it's just displaying that and that it's building that path off your configured Wordpress Address... change your wordpress address and siteurl to your current IP and I bet that's what you'll see instead
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22306
    • Thanks: 3229
    • messin' with stuff

    Re: absolute path - maybe be a WP issue (?)

    Posted 11 years 4 weeks ago
    • ^^ I'd recommend doing the test with override lines in your config.php as menitoned above so you can easily remove them and toggle back to production
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.076 seconds