13 Nov 2008, 03:28
Generic-user-small

ignacio rodriguez (3 posts)

Hi Ryan – I just ran through the first three tutorials. They are excellent. I was into the fourth and had just created my links in the masthead include. When I tested – it seemed to work fine, until I clicked through the main tabs again which resulted in the following error:

Error: The URL contains too many segments.

I’m running MAMP and have ee in a sub-directory..

Thanks in advance for any advice.

-Ignacio

13 Nov 2008, 05:01
Ryanirelan_headshot_48x48_pragsmall

Ryan Irelan (218 posts)

Hi Ingacio,

What is the URL you’re trying to access when you get the error?

13 Nov 2008, 13:35
Generic-user-small

ignacio rodriguez (3 posts)

Ryan, following is the code in the masthead. the urls all function properly, but I can see in the address bar that the url string continues to build and after several clicks I get the error:

<div id="masthead"> <h1>Engine City Times</h1> <h2>Saturday, May 20, 2007</h2> <div id="main-nav"> <ul> <li><a {if segment_1 == ""}class="current" {/if} href="{site_url}">Home</a></li> <li><a {if segment_4 == "news"}class="current" {/if} href="news_articles/page/category/news">News</a></li> <li><a {if segment_4 == "sports"}class="current" {/if} href="news_articles/page/category/sports">Sports</a></li> <li><a {if segment_4 == "politics"}class="current" {/if} href="news_articles/page/category/politics">Politics</a></li> <li><a href="">Obits</a></li> </ul> <a href="#"><p id="subscribe"><img src="/expression/img/feed-icon.png" alt="feed icon" />Subscribe to the News</p></a> </div> <!-- END #main-nav --> </div> <!-- END #masthead -->
13 Nov 2008, 14:37
Ryanirelan_headshot_48x48_pragsmall

Ryan Irelan (218 posts)

I think I see it. Try adding a forward slach to all of the navigation items’ paths, except “Home,” e.g. /news_articles/page/category/news.

13 Nov 2008, 14:57
Generic-user-small

ignacio rodriguez (3 posts)

Thanks – I’ll try this out. I think running the tutorials in a sub-directory has been problematic and I may restart in the root directory.

13 Apr 2009, 04:35
Generic-user-small

Arbie Samong (1 post)

Ryan’s fix works. A couple more notes for those running the tutorial on a subsite:
- the ‘img’ and ‘css’ folders are placed on the top level directory for the EE subsite, along with install.php.backup and path.php
- be sure to reference links with the directory to the subsite. For example, if I installed EE on c:\xampplite\htdocs\ee\tutorial, I’ll make sure that tags such as anchors and images in the tutorial code would have to be appended with /ee/tutorial/
- I placed the .htaccess file on the top level folder, same with css and img folders. However, I did change the last line to RewriteRule ^(.*)$ index.php/$1 [L] for subsites

14 Apr 2009, 04:06
Ryanirelan_headshot_48x48_pragsmall

Ryan Irelan (218 posts)

Thanks for the tips, Arbie!

02 Jul 2009, 07:43
Generic-user-small

Lee Michaelson (9 posts)

I wound my way through the fourth tutorial, and after copying the code supplied (to the letter) when I load the site, I get no response whatsoever when clicking the orange RSS button on the front page, and when clicking the blue RSS icon in the address bar, it invites me to subscribe to the feed, but when I say, “Yes” I get an error message back that reads:

URLfeed not found on this server.

Since we’re using the {site_url} tag and the site url obviously has to be on the server, can you tell me how to fix this?

  You must be logged in to comment