Give help. Get help.

  • # March 19, 2013 at 6:20 pm

    Oh, I see the problem… I need to specify that the default index page uses home.php

    # March 19, 2013 at 6:27 pm

    Ok, so my default page is ‘home’, so how would this be written? The above code you gave didn’t change anything.

    # March 19, 2013 at 6:41 pm

    When going directly to I get errors. If I go to I no longer have any errors. Any suggestions?

    # March 19, 2013 at 7:15 pm

    It seems that I need to set the default page within the navigation, which should be ‘home’. Anyone know how to achieve this?

    # March 20, 2013 at 2:53 am

    It is saying ‘Unidentified Index Page…” It’s saying that there is no identified index page in navigation.php?

    # March 20, 2013 at 6:45 am

    Add `$page = isset($_GET) ? $_GET : ‘home’;` (if you haven’t declared `$page` somewhere else already) before the list and replace all the `$_GET` with `$page` inside the list.

    # March 20, 2013 at 12:01 pm

    Thanks again man, you definitely rock! Thanks goes out to BenWalker also, for contributing to solving this issue.

    # March 20, 2013 at 12:24 pm

    One more thing, in your switch you default to your home page. I would default to a 404 error page like this:

    $page = isset($_GET) ? $_GET : ‘home’;

    // include header and menu here (so they have access to $page)

    switch ($page) {
    case ‘home’:
    case ‘about’:
    case ‘contact’:

    // include footer here

    # March 20, 2013 at 1:28 pm

    Yeah, I plan to do that before completion of the website. I have a 404 template that I use for all of my websites that I usually impliment before I put the site live. Thanks for everything!

    # March 20, 2013 at 2:18 pm

    Actually, I went ahead and changed that, but for some reason it'[s not working like it should. When I go to just it displays the 404 page instead of the home page… Wth? I never had this problem with that…

    # March 20, 2013 at 2:26 pm

    Weird, can you show me your full index.php file?

    # March 20, 2013 at 2:44 pm

    The index.php file contains nothing but an include to the header, content, and footer…

    # March 20, 2013 at 2:45 pm

    where the content is simply the case/switch that handles the page display…

    # March 20, 2013 at 2:46 pm

    Without the mod_rewrite it displays the 404 page only when going to a wrong link, but with it, the 404 becomes the default…

Viewing 15 posts - 46 through 60 (of 64 total)

You must be logged in to reply to this topic.