• Hi, I’m having trouble on my wordpress site changing the default address a viewer sees when they browse from :

    http://www.vj-book.com/

    to become that of a particular page I created, such as:

    http://www.vj-book.com/?page_id=2

    I tried putting in a PHP redirect into the header.php file but it screwed everything up, so I took it out. I can’t find anything in the admin section to do this for me…any suggestions?

    thanks,

    Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like you’ve created your categories into individual Pages. If you do that, you will get that link.

    Or is your problem that you have permalinks turned on and they aren’t working? I didn’t see any posts on your site, so I can’t tell.

    Thread Starter dvjtj

    (@dvjtj)

    ok i tried deleting the categories besides general but its still messed up. I read the Codex and i still can’t figure it out.

    that is deliberate (with the menu bar at top)…the formatting is correct for the pages, except for the index.php formatting that shows up when you load the page.

    I still don’t get what you want to achieve. Any index page will show up when you go to a directory. What is that you want? To have the page you linked above instead of index when someone visits the site?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I think this is what you’re looking for: http://www.semiologic.com/projects/static-front/

    Thread Starter dvjtj

    (@dvjtj)

    i fixed it..it was a php script i was using for dynamic image creation that was causing it to mess up…I forgot the last else statement..thank you for your help!:

    <?php
    if($page_id==2) {
    echo ‘<div id=”left_col3″>’;
    } else if ($page_id ==6) {
    echo ‘<div id=”left_col2″>’;
    } else if ($page_id ==9) {
    echo ‘<div id=”left_col4″>’;
    } else if ($page_id==10) {
    echo ‘<div id=”left_col5″>’;
    } else if ($page_id==12) {
    echo ‘<div id=”left_col6″>’;
    } else if ($page_id==11) {
    echo ‘<div id=”left_col8″>’;
    } else if ($page_id==13) {
    echo ‘<div id=”left_col7″>’;
    } else {
    echo ‘<div id=”left_col3″>’;
    }
    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default Index.php – changed to particular page?’ is closed to new replies.