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.

URL display not looking as intended

December 31, 2007 4:09am

Subscribe [2]
  • #1 / Dec 31, 2007 4:09am

    Cheif

    626 posts

    Hi all,
    1st post on what looks like a great bit of software… I am an ee n00b so bare with me if I am repeating already answered questions.

    I just dont get how the homepage/default requires no URL formating whatsoever (http://mysite.com/) shows all correctly, yet everything there after comes with a butt ugly URL. One is only left to assume that apart from the .htaccess hack (which the ee site uses (assumed)) there is no way around ?

    The language and the commands I am coming to terms with I just would like to clarify before I get to into the rest, that apart from the index page everything else must include

    <a href="http://mysite.com/index.php/mysite/about/">http://mysite.com/index.php/mysite/about/</a>

    . If this is the way it is then that’s fair enuf but in the vain hope there is something else I have asked anyway 😊

    PS. Happy New Year from Australia 😊

  • #2 / Dec 31, 2007 1:05pm

    Leslie Camacho

    1340 posts

    Hi Cheif,

    What you describe is correct. The default homepage URL does not require the index.php because index.php is served automatically to the browser by the server (in the vast majority of cases at least). Most servers honor an “index” file usually starting with index.html.

    For example, if you have index.html and index.php in the root of your web hosting account, the server will serve index.html not index.php first unless you specifically state otherwise. If there is no index.html, it will look for the next index.* file to serve, etc… This only takes place with the main URL, not extended URLs that refer to specific pages on a site.

    Since “index.php” is the trigger, so to speak, that starts EE if it isn’t called, then EE doesn’t work. So you have to have a way to make sure that index.php is called for every page on the site. There isn’t a way around this aside from .htaccess since this is functionality at the server level versus something that can be solved with an application programming language like php.

  • #3 / Dec 31, 2007 7:54pm

    Cheif

    626 posts

    Cheers leslie, look out for me in the next few weeks as I wrap my brain around some of the concepts and code required to make a killer site 😊

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

ExpressionEngine News!

#eecms, #events, #releases