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.

Strict URLs, Category Reserved Word, and 404

July 22, 2010 8:18pm

Subscribe [3]
  • #1 / Jul 22, 2010 8:18pm

    brianhuffines

    6 posts

    Hi! First post in the forums. Hopefully I don’t put my foot in my mouth somehow.

    I’m having a bit of trouble resolving an issue around Strict URLs, the reserved category word, and getting my 404s to properly function. I’ve had my categories working correctly for a long time. Yesterday, I created a proper 404 page with appropriate messaging, suggested content, and search. When doing so, I set the Strict URLs preference to “yes,” and I pointed the system at my new 404 template. Upon doing that, I find that my categories no longer work. If I reset the preferences to “no” and “none,” respectively, the categories work again.

    Anyone else encounter this problem?

    I’m not a PHP superstar by any stretch, but looking at core/core.template.php (1.6.9), in the parse_template_uri function, I don’t see where it would catch the reserved keyword. Related or no? (I’m expecting the answer to be no)

    If unrelated, any help diagnosing the problem would be much appreciated.

    Thanks all!

  • #2 / Jul 23, 2010 2:11am

    John Henry Donovan

    12339 posts

    brianhuffines,

    Welcome to the forums 😊

    What build are you using as opposed to the version?
    You can find this in the footer of your CP
    Are you using a htaccess?
    Are you using any extensions?

    What would your category URL look like. Have you got a live link we could see?

    Can you share some of the details of your template?

  • #3 / Jul 23, 2010 1:24pm

    brianhuffines

    6 posts

    Hi John, thanks for the reply.

    Build: 20100415

    Yes, I’m using an .htaccess. I’m using Leevi Graham’s .htaccess generator, pretty much straight out of the box, with an additional line at the top that is required by MediaTemple to keep the system on PHP5, instead of reverting to PHP4. Here’s that rule:
    AddHandler php5-script .php

    Here’s my full list of extensions (all of which are the latest versions):
    • Friends (Solspace)
    • LG Social Bookmarks (Leevi Graham)
    • FBC (Solspace)
    • LG .htaccess Generator (Leevi Graham)
    • User (Solspace)
    • Edit Remember (Mark Huot)
    • jQuery for the Control Panel (default EE)
    • Gallery Extended Extension (default EE)
    • Friends Code Pack—built by Friends extension—created some sample templates (Solspace)
    • BN Absolute Total Results (Barrett Newton)

    The domain is thecomet.com. My Category trigger word is “tracks,” so category URLs look like this:
    thecomet.com/tracks/industry_insider   or
    thecomet.com/tracks/new_music

    I’m troubleshooting the problem on our dev site, which is a different subdomain. But if you go to http://thecomet.com, you’ll see the live version of the site. I can also directly send you to the dev version, if you feel that taking a look at that would be helpful.

    Happy to share template details. Not sure what exactly to share, though. Here is the main/index (the site’s default template that serves both the main blogroll, and the category blogrolls):

    {embed="embeds/header"}
    
    {if segment_1 == ""}
        {embed="main/homepage_top"}
    {/if}
    
    {if segment_1 == ""}
        <div class="shell_12 upperRule top_sm">
    {if:else}
        <div class="shell_12">
    {/if}
        <div class="grid_2 drop_sm">
            {site_url}/images/site/ad_label.gif
        </div>
        <div class="grid_10 drop_med">
            {embed="ads/top_unit"}
        </div>
    </div>
    <div class="clear"></div>
    
    <div id="list" class="drop_med">
        {if segment_1 == "tracks"}
            {embed="rocky/list" entrieslimit="20" list_style="loose"}
        {if:else}
            {embed="rocky/list_home" entrieslimit="20" list_style="loose"}
        {/if}
    </div>
    
    {embed="embeds/footer"}

    Each of the ‘lists’ just display a loop through a specific weblog:entries tag. Nothing crazy.


    Thanks again for taking a look at this!

    b

  • #4 / Jul 23, 2010 1:36pm

    brianhuffines

    6 posts

    One more thing: I confirmed that the main, embeds, ads, and rocky template groups are all included in the .htaccess generator as specified by the extension.

  • #5 / Jul 23, 2010 5:27pm

    Brandon Jones

    5500 posts

    brianhuffines,

    First things first, please disable the .htaccess generator and set your site’s index page in General Configuration back to index.php. No point in troubleshooting URLs with URL rewriting in the mix! Then test again.

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

ExpressionEngine News!

#eecms, #events, #releases