multiple main "index" pages--possible? (5 posts)

  1. thepete
    Posted 11 years ago #

    Here's what I'm trying to do:

    1) I use a straight index.php file as my template. I'd like to have a file called main.php in my root directory that is laid out differently and only displays one category.

    2) I'd also like for the "*.php?p=234" to work on this other page.

    At present, it doesn't. I can get the page to display one category, but I want users to stick with the same template when they go to an entry page from this new main page.

    Does this make sense?

    I'm also thinking that my permalink structure might stop the "*.php?p=234" thing from working, although it works fine like this: "index.php?p=234" when the index.php is in the root, but when it's anywhere else or looks like this: "anythingelse.php?p=234" it doesn't work. If I turned off the permalinks, would this work?

    Thanks in advance for any help/advice!!

    Oh yeah and I was able to do this just fine in 1.2, but I hadn't messed with my permalink structure at all at that point.

  2. Lorelle
    Posted 11 years ago #

  3. thepete
    Posted 11 years ago #

    Switching templates doesn't seem to work for me. I think it's because my template is simply my main index file and not what is in the theme folder. Thanks anyway, though!

  4. thepete
    Posted 11 years ago #

    I'm also thinking there's something wrong with WP itself or my server since my htaccess file is writable, yet WP says it isn't. Perhaps that could have something to do with it? I really have no idea.

  5. Anonymous
    Posted 11 years ago #

    Are you sure it's writeable by WordPress? Make sure the file is owned by the server (usually Apache) and is writeable by it (some Apache servers require files to be world writeable for some odd reason).

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.