We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can't Get Main Nav To Work

Development and Programming

theia's avatar
theia
14 posts
16 years ago
theia's avatar theia

I’m using the Structure Extension.

From index page, my other main nav links bring up this type of error.

Not Found The requested URL /about was not found on this server.

http://hwc.ehclients.com

The about page will successfully show if I go through Structure to view it. And if I manually enter “http://hwc.ehclients.com/index.php/about” it will show up as well.

<div id="links">
<.a {if segment_1 == ""} class="selected" {/if} id="button1" href="/"><span class="alt"></span></a>
<.a {if segment_1 == "about"} class="selected" {/if} id="button2" href="/about"><span class="alt"></span></a>
<.a {if segment_1 == "services"} class="selected" {/if} id="button3" href="/services"><span class="alt"></span></a>
<.a {if segment_1 == "gallery"} class="selected" {/if} id="button4" href="/gallery"><span class="alt"></span></a>
<.a {if segment_1 == "insurance"} class="selected" {/if} id="button5" href="/insurance"><span class="alt"></span></a>
<.a {if segment_1 == "contact"} class="selected" {/if} id="button6" href="/contact"><span class="alt"></span></a>
</div>

I had to add a . before the a to post the “links” section in this post, because otherwise it wasn’t showing the {if} statement.

Such a simple problem, what am I missing?

       
Jeremy E's avatar
Jeremy E
5 posts
16 years ago
Jeremy E's avatar Jeremy E

Unless you have configured your site differently. You need to add index.php to the href

href=index.php/about

I believe you can also use {path="site_index"}. That would do it for ya.

href=”{path="site_index"}/about”

(spelling correction)

       
theia's avatar
theia
14 posts
16 years ago
theia's avatar theia

My apologies, I meant to paste in the Extensions Forum. I’m using the Structure extension.

       
Jeremy E's avatar
Jeremy E
5 posts
16 years ago
Jeremy E's avatar Jeremy E

My bad! I skimmed right over your mention of that. Sorry.

Although I did browse to your page and if I append an index.php to the about link it loads. It seems that this module still requires one to use the normal paths. Maybe there is a config flag that changes that I am not sure.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.