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.

Page links not working.

December 28, 2007 2:22pm

Subscribe [2]
  • #1 / Dec 28, 2007 2:22pm

    joshmarch

    14 posts

    So, I’m brand new to EE and here’s my first question:

    <li id="work"><a href="http://{path=web/work}">Work</a></li>
    <li id="about"><a href="http://{path=web/about}">About</a></li>
    <li id="weblog"><a href="http://{path=web/blog}">Weblog</a></li>
    <li id="contact"><a href="http://{path=web/contact}">Contact</a></li>

    The page links on my primary navigation are not working.  The URL changes to show the appropriate path, but the index page loads instead.  What am I missing?  Thanks!

  • #2 / Dec 28, 2007 2:35pm

    Boyink!

    5011 posts

    That sounds like EE’s 404 behavior kicking in - what are your rendered links looking like?

    Do you have a template group named web, with templates named work, about, blog and contact?

  • #3 / Dec 28, 2007 2:42pm

    joshmarch

    14 posts

    Yep.. template group “web”, templates “index, work, about, blog, contact”.

    It just keeps loading the index page(template).  URL changes though. (ex: http://www.sitename/index.php/web/blog/)

  • #4 / Dec 28, 2007 2:45pm

    Boyink!

    5011 posts

    OK - load the page and do a view source in the browser.  Let’s see what the rendered code looks like.

  • #5 / Dec 28, 2007 2:50pm

    Boyink!

    5011 posts

    Oh..and also go to a template in the EE CP, and click a “view” link from there.  What URL does the template load with then?

  • #6 / Dec 28, 2007 2:58pm

    joshmarch

    14 posts

    It continues to load the index page (though showing the correct template URL), even from there.

    I tried turning on “Force URL query strings” and the pages now load, but the links for the stylesheet etc. are broken, and it doesn’t recognize the EE tags.  Just raw HTML.

  • #7 / Dec 28, 2007 3:06pm

    joshmarch

    14 posts

    Sorry.. I missed post #3… here are the rendered links.  (the site is in subdirectory “ee”).

    <ul class=“navbar”>
    <li id=“home”>Home</li>
    <li id=“work”>Work</li>
    <li id=“about”>About</li>
    <li id=“weblog”>Weblog</li>
    <li id=“contact”>Contact</li>
    </ul>

  • #8 / Dec 28, 2007 3:25pm

    Boyink!

    5011 posts

    That’s starting to sound like an issue with the host.

    Where are you hosted?

    You might try the Server Wizard to see if the environment is setup correctly for EE.

  • #9 / Dec 28, 2007 3:36pm

    joshmarch

    14 posts

    Thanks.  Ran the wizard… “URL Segment Support” is unsupported.  It’s a suggested feature, but I’m guessing this is the problem?

    Hosting with Siteground.  (who I’ve been loyal to for years, until now.. ha)

  • #10 / Dec 28, 2007 3:38pm

    Boyink!

    5011 posts

    Hmm..did you find this kb entry earlier?

  • #11 / Dec 28, 2007 5:16pm

    joshmarch

    14 posts

    I got Siteground to enable the “path_info” variable, but still no luck.  So I enabled “Force URL query strings” again, and changed the $qtype variable in the index.php file like the kb article suggested, and now we’re in business.

    Thanks for your help Michael!  Also for your tutorials… I’ve been referencing them quite a bit.  Gary

  • #12 / Dec 28, 2007 5:48pm

    Boyink!

    5011 posts

    Cool…glad to hear you’re up and going…

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

ExpressionEngine News!

#eecms, #events, #releases