• I?′ve set up an other page with wordpress, not a blog.
    Everything works fine except one thing:
    I placed the random-banner plugin into my index.php, so that visitors see a different picture every time the visit my page.

    The problem is, that this index.php is also used to generate the pages after clicking on a post on the archive page to see the whole post.
    Is this correct?

    Will it be possible to change that.
    I mean, that the page out of the archive is not generated with that index.php, but another page I create?
    And where do I find the related code for changing it?
    I hope you know what I mean and what I want to do!
    thanks
    Christina

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    The problem is, that this index.php is also used to generate the pages after clicking on a post on the archive page to see the whole post. Is this correct? Will it be possible to change that.

    No, that will not be possible because all posts, pages, archive listing, category listing, and search results are generated as PHP queries based off of index.php. For example, without permalinks, a single post’s URL is something like index.php?p=123 . This cannot be changed.

    Thread Starter tinarawatta

    (@tinarawatta)

    So is it possible, that not the index.php is the first site on a page?
    I mean then I could create eg. enter.php and if someone goes to my site he will first see enter.php….
    How can i do that?
    I guess its a little off topic…
    Thanks
    Christina

    Actually you might be able to do it. In wp_options table there is “blogfilename” which is set to index.php. I suppose you could change it to something else.

    wp-admin/options.php

    You could also change the DirectoryIndex to something other than index.php. On many servers index.html is served up before index.php. For instance my htaccess file is set to:
    DirectoryIndex index.html index.html.var index.php index.shtml

    If there is an index.php and index.html file in the same directory, index.html is displayed.

    Thread Starter tinarawatta

    (@tinarawatta)

    Hello,
    I cant find the related line.
    I tried it with .htaccess.
    It looks like:
    DirectoryIndex enter.php

    while enter.php wil be the page displayed first.
    If I upload it into the Themefolder nothing happens, index.php is still loaded.
    If I upload it into the main WP folder on the server I get the 403-forbidden page….
    Thanks
    Christina

    It needs to go into the main WP folder or else it won’t work. Perhaps you need to change the permission levels on the file itself. Did you try to change the blogfilenam to something else as an alternative?

    Thread Starter tinarawatta

    (@tinarawatta)

    Hello,
    where do I have to change it?
    I can not find the related file or the line in the code.
    Can you tell me there to change ist?
    Thanks
    Christina

    The “line in the code” is actually an option not normally displayed in the admin section. Enter what I gave above, “wp-admin/options.php”, and change the value for “blogfilename” – you will then have to enter that filename to get the blog.

    Fortunately it easy to change back as it sounds like you want to do something you don’t fully understand.

    Thread Starter tinarawatta

    (@tinarawatta)

    There is no value for “blogfilename” cause that does not exist there…
    thanks
    Christina

    Unless you are running a different version of WP, then there is and it does ;-).
    http://yoursite/wp-admin/options.php

    Under “All Options” it is the sixth option down.
    active_plugins
    admin_email
    advanced_edit
    blacklist_keys
    blogdescription
    blogfilename

    Thread Starter tinarawatta

    (@tinarawatta)

    I?′m running the latest version of WP I guess 1.5.1.3.
    But the 6th in all options is “blogname” – Blog title…
    Thanks
    Christina

    Learn something new every day. Must be a holdover from an older version that is no longer used but is still called in template-functions-category (probably an oversight).

    Looks like we are stuck unless someone else has an idea or two.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Archives page not generated out of index.php?’ is closed to new replies.