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.

Another SEO question

February 15, 2008 11:45am

Subscribe [4]
  • #31 / Feb 18, 2008 11:33am

    JimGoings

    44 posts

    ok, I created some new templates just for testing. 

    lisatest

    {assign_variable:my_weblog="dragonavenue_mainblog"}
    {assign_variable:my_template_group="dnd"}
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>{exp:weblog:entries weblog="{my_weblog}" limit="1" disable="categories|member_data|trackbacks"}{title}{/exp:weblog:entries}</title> 
    </head>
    
    <body>
    This is the template called lisatest.  I will now embed lisatest_header, lisatest_content, and lisatest_footer    
    {embed="dnd/lisatest_header"}
        {embed="dnd/lisatest_content"}
        {embed="dnd/lisatest_footer"}
    </body>
    </html>

    lisatest_header

    This is the header called lisatest_header.  It is embedded within lisatest

    lisatest_content

    {exp:weblog:entries weblog="dragonavenue_mainblog" limit="10" require_entry="yes"}
    This is the single-entry page called lisatest_content.  This template is embedded within lisatest
    {title}
    
    {if no_results}
    {redirect="404"}
    {/if}
    {/exp:weblog:entries}

    lisatest_footer

    this is the footer template called lisatest_footer.  it is embedded within lisatest

    Here is a working URL to a valid entry:
    http://www.dragonavenue.com/dnd/lisatest/ice_archon_stats/

    Here is a broken URL that 404’s - in the way that I thought it would - by redirecting *just* the inner template.
    http://www.dragonavenue.com/dnd/lisatest/blahblah

    As you can see, even on the bad URL, only the lisatest_content template is replaced with the 404.

  • #32 / Feb 18, 2008 12:09pm

    Robin Sowell

    13255 posts

    I think I’m just not replicating.  I set up a template group called duptest and pretty much mirrored the above.  See it http://media-cow.com/duptest/170.  Stick an extra digit on the number so it’s invalid- you get my 404, which is set to be my search template.

    But let’s test a little more- what if we use an entry id in your urls, instead of the url title.  Any difference?

    And because I’m still a wee bit fuzzy- the behavior I see does not match yours- correct?  If it did- I should be getting the ‘The is the template called lisatest_footer’ etc. text around my search page.  Is my understanding solid?

  • #33 / Feb 18, 2008 12:17pm

    Lisa Wess

    20502 posts

    To add to that - if you remove the embeds and place the code directly in lisatest, does it still happen?

  • #34 / Feb 18, 2008 12:54pm

    JimGoings

    44 posts

    I am 90% confident that it won’t happen if I remove the embeds and put it in lisatest directly… all the evidence so far suggests that.

    But you’re saying that it shouldn’t embed at all when it 404’s right?

    Robin - I noticed that your site doesn’t include the same amount of segments in the URL.  How is that possible?

    I thought below was as short as was possible:
    domainname\templategroup\singleentrypage\titleofspecificentry

    You seem to have
    domainname\templategroup\titleofspecificentry

    I don’t mean to derail onto another topic - just wondering if there’s a clue in there.

  • #35 / Feb 18, 2008 1:03pm

    Robin Sowell

    13255 posts

    Hm- shouldn’t be.  You can leave out the ‘index’ and it will default to that template.  In fact- if a template doesn’t exist in that group, that’s what it does.

    Hm again.  Wonder if that is in play.  Let me go shift my main content to a different template and see if I get the same results.

  • #36 / Feb 18, 2008 1:09pm

    Robin Sowell

    13255 posts

    Yep- no difference, and no difference using url title instead of id:
    http://media-cow.com/duptest/index2/ha

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

ExpressionEngine News!

#eecms, #events, #releases