• Shaney

    (@shaney)


    Hello, I’ve just downloaded this fine piece of software and everything seems to be running fine.
    However, I want the main page for all posts to be BLOG.php instead of INDEX.php
    I tried renaming the INDEX.php file to BLOG.php and my posts show up fine. However, the archive links, and post a comment links are still targeted to the INDEX.php. Can anyone tell Me where and what files I would need to edit to make all of my archives and comment pages link to BLOG.php instead of INDEX.php ?
    I thank anyone in advance for their help πŸ™‚

Viewing 11 replies - 1 through 11 (of 11 total)
  • Daynah

    (@phpprincess)

    I believe… it’s under Options -> General Options.
    Just change your url to http://yourdomain.com/blog.php

    Thread Starter Shaney

    (@shaney)

    I’ve just tried that… and now my links have changed to:
    http://mydomain.com/blog.php/index.php
    It doesn’t seem to work πŸ™

    Beel

    (@beel)

    Unless you want an index page there do a redirect in .htaccess.

    Sushubh

    (@sushubh)

    any particular reason for not naming it index?
    coz if u want someother page to be used as the default pages, HTA file can control that.

    Thread Starter Shaney

    (@shaney)

    “any particular reason for not naming it index?”
    Yes, because I already have an index page.
    I’m a little reluctant to mess around with the .htaccess settings. I’d rather prefer editing my wordpress configuration then .htaccess file. Thanks for the advice though πŸ™‚
    Is there no other way that involves editing the wordpress files ? When I was experimenting with an earlier version of wordpress, it seemed to let Me change the filename and extension for index.php just fine.

    Thread Starter Shaney

    (@shaney)

    Thank You Beel.
    That seemed to work !
    πŸ˜€
    Thanks to everyone else for helping too.

    Zarniwoop

    (@zarniwoop)

    Maybe this article will change your mind about naming conventions. It is a much better idea to give your blog an extra subdirectory called blog/ or something similar.

    Sushubh

    (@sushubh)

    i simply use default.php as the homepage and tell apache to call it before index.php using htaccess…

    carthik

    (@carthik)

    Beel was right, changing blogfilename in the options is the way I did it over at http://faq.wordpress.net/view.php

    where is blogfilename ? im trying to rename my index.php to blog.php but i dont know how, or where blogfilename is? can someone help?

    wp-admin/options.php?option_group_id=6
    Guess it’s a setting there were problems with users accidentally fiddling with. So it’s a bit hidden now.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Renaming the index.php file ?’ is closed to new replies.