ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Absolute URLs in EE configuration

May 11, 2012 11:31am

Subscribe [1]
  • #1 / May 11, 2012 11:31am

    Marc L

    20 posts

    Hi,

    Im using the Deeploy helper plugin and I can see that there are many references to the absolute site url in different parameters in the EE config. Most of these seem to be named *_url. (site_url, photo_url, file upload preferences urls, cp url)

    My question is this - can I remove all these absolute references and just have relative ones instead ?

    What does EE use these for ? Is it for presentation or is it for actually generating links etc ?

    Im setting a new site up on a server which does not have a domain pointing at it yet. I have a temp address from the hosting company and I want to get the site set up and for the client to be able to access and edit content before we point their domain name at the server and go live. Also if I can make all these references relative it means I will not have to muck around changing them when going between dev/staging/prod etc.

    Thanks !!

     

  • #2 / May 14, 2012 12:56pm

    Dan Decker

    7338 posts

    Hi Marc,

    While not directly supported, you should be OK making these relative.

    There are a few add ons that can make this quite a bit easier. Deploy helper is one, there is also Greeny, which detects your environments and makes path and URL changes.

    I recommend you check out the Focus Lab Master Config as well. It sets several config items based on the environment it detects. Makes muti-phase and development installs a bit easier to manage.

    Cheers,

  • #3 / May 24, 2012 4:52am

    Marc L

    20 posts

    Hi Dan,

    I implemented the focus master config and greeny and this has made life 1000% easier - thanks !!

    One thing I noticed was that the focus master conf has some settings such as ‘is system on’. This seemed to stop me from changing certain settings like this in the CP and I had to comment out in the config. Have I done something wrong somewhere ?

  • #4 / May 30, 2012 5:38pm

    Dan Decker

    7338 posts

    Hi Marc,

    I implemented the focus master config and greeny and this has made life 1000% easier - thanks !!

    Awesome! I’m glad to hear that!

    One thing I noticed was that the focus master conf has some settings such as ‘is system on’. This seemed to stop me from changing certain settings like this in the CP and I had to comment out in the config. Have I done something wrong somewhere ?

    Nope! ExpressionEngine will use whatever is in config.php over any other value - ultimately, that is where the Master Config values “end up” so ExpressionEngine will use them.

    The preference order of preference is:
    Database
    index.php/admin.php
    config.php

    Just FYI.

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases