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.

Template rendering pops back to index page

October 29, 2009 7:51pm

Subscribe [2]
  • #1 / Oct 29, 2009 7:51pm

    Janet Beckley

    15 posts

    Not sure what’s going on but when I “view rendered template” my URL is fine but the page rendered is always my index page. For example, I edited site/index and everything renders perfectly. After creating another template with entirely different code and hitting “view rendered template” it renders the index page again but with a URL change: http://site.com/index.php/about. I’ve been copying/pasting the same code in a bunch of pages - but still the same thing.

    It’s a new server and a new server environement so we’ve been doing a lot of debugging. I’ve got LG.htaccess generator and Structure on the site. Both were fairly happy with one another after I made the required changes to .htacess generator. Got a bunch of 500 internal server errors so my admins asked me to rewrite the .htaccess file:

    I changed
    # Dont list files in index pages
      IndexIgnore *

    to
    # Dont list files in index pages
    # IndexIgnore *

    And that seemed happy. I was back building my site until the “View Rendered Template” thang happened.

    I now have .htaccess generator disabled; I de-installed Structure…

    Any clues why all my rendered templates look like my index page?

    Jan

  • #2 / Oct 29, 2009 8:07pm

    Adam Dorsey

    1439 posts

    Hi Janet-

    We don’t offer support on removing the index.php page, or third-party add-ons.

    I would like to at least have you test a few things, before we decide whether it is an .htaccess issue or a Structure issue.

    1) Disable LG .htaccess via the Extensions Manager page, found here: CP Home ›  Admin ›  Utilities ›  Extensions Manager
    2) Rename your .htaccess file in the root of your EE install, to something like “.htaccess-OLD”
    3) Then create a template_group called “test” and a template inside that group called “something”
    4) Add a basic “Hello World.” to the “something” template, and click the “View Rendered Template” button

    Let us know if you can view the template.

  • #3 / Oct 29, 2009 8:11pm

    Adam Dorsey

    1439 posts

    Janet-
    Also, please review this article before you begin testing:
    http://expressionengine.com/knowledge_base/article/main_page_content_appears_on_every_page_i_get_404s_except_on_the_main_page_/

    It may solved the issue for you.

  • #4 / Oct 29, 2009 8:33pm

    Janet Beckley

    15 posts

    Your second suggestion worked! I read the wiki article and “Forced query strings” in my site’s system preference and we’re happy for the moment. Thanks again Adam.

    Jan

  • #5 / Oct 29, 2009 8:39pm

    Adam Dorsey

    1439 posts

    Glad you got things sorted out Janet!

    Please feel free to post again, should you run into anymore issues.

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

ExpressionEngine News!

#eecms, #events, #releases