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.

Why homepage blank?

November 01, 2012 2:16pm

Subscribe [3]
  • #1 / Nov 01, 2012 2:16pm

    counterintuity

    20 posts

    I had my template “site/index” as my homepage.  When I go to my website: “www.mywebsite.com/index.php”...it is blank.  But if I go to “www.mywebsite.com/index.php/site”...it does display my homepage.  I looked into the root for any index.html, default.html or anything other than index.php…I found nothing.  I also emptied my cache.

    My general configuration does has “index.php” for “Name of your site’s index page”.

    Any idea what I am missing?

    I am using EE v2.5.3

  • #2 / Nov 05, 2012 12:21pm

    Shane Eckert

    7174 posts

    Hey there counterintuity,

    Thank you for posting your question.

    Are you using an htaccess file? If so, can I see that code?

    You can also enable debugging to see if anything shows up.

    ** To turn debugging on please go to your Control Panel and navigate to Admin->System Administration-> Output and Debugging. Please set the last two settings, which are “Display Output Profiler?” and “Display Template Debugging?”, to yes.

    Cheers,

  • #3 / Nov 05, 2012 7:49pm

    counterintuity

    20 posts

    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Removes index.php from ExpressionEngine URLs
            RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>
    
    php_value upload_max_filesize 128M
  • #4 / Nov 05, 2012 8:02pm

    counterintuity

    20 posts

    I set the debugging and cannot really tell what exactly is wrong with it.  What should I look for?  I tried to send you PM to give you the URL to the homepage but your inbox is full.

  • #5 / Nov 06, 2012 4:30pm

    Robin Sowell

    13255 posts

    We generally leave our PM’s off, so as to keep discussions consolidated.  With debugging turned on, do you get anything showing up on http://www.mywebsite.com/index.php?  Is it possible to copy to a text file and attach?

    Also- what I’ll do when I’m debugging something weird is simplify.  So:
    1. Double check your ‘site’ template group is set as your default template group- edit the group, you should see it marked as the default.
    2.  Simplify the contents of the site/index template, so nothing is going on there that’s jamming you up.  I’d copy over all the contents of site/index, save it somewhere, and then delete everything but ‘I am site/index’ and save that. 

    Does the above get us anywhere?

    And if you’re removing index.php from the template- you’ll want to remove that from the settings, but it’s not hurting anything, so let’s get the blank page issue squared away first.

  • #6 / Nov 19, 2012 5:50pm

    counterintuity

    20 posts

    I found out what was wrong:

    I assumed that the first template group will automatically become marked as default. I thought that the home icon next to “index” made it official.  Until when you asked me to double check “site” template group is set as default, I went in and found out that its “Make the index template in this group your site’s home page?” wasn’t checked.

    So the indication that the template group is marked as default is shown with an asterisk before the template group’s name.

  • #7 / Nov 20, 2012 10:44am

    Shane Eckert

    7174 posts

    Hello counterintuity,

    Thank you for letting us know!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases