WordPress.org

Ready to get started?Download WordPress

Forums

Not index.php - blog.php plz (9 posts)

  1. protos
    Member
    Posted 9 years ago #

    Hi All!
    I have tried installing WP several times since its the best application for blogging that I have come across. But I run into a problem.
    Th WP *assumes* that its going to be the index.php - but in my case its only a menu item along with e.g. "photos" and "about" - in short how do I configure Wp to run as blog.php on my site?
    Has anyone in here done it? and is it time consuming?
    Best regards
    Kristian

  2. Muffinboy
    Member
    Posted 9 years ago #

    Would it be too much trouble to set up WP in a separate directory, like: domain.com/blog/ ? Looking at your site, you'll probably still be able to pull headers and footers in by editing WP's index.php.

  3. protos
    Member
    Posted 9 years ago #

    Well it probably would work - but I would relly prefer to do it the other way around.
    I see this as a common problem with a lot of open source projects - they often usually assume control over the index.
    I was just wondering if I could do a search and replace on index->blog and if that would the still work.
    There must be someone who did it? or...?

  4. DaveProut
    Member
    Posted 9 years ago #

    Have you tried going to
    http://your.domain/wp-admin/options.php?option_group_id=all
    and changing index.php to blog.php ?

  5. protos
    Member
    Posted 9 years ago #

    That dosent do it.
    You can change two URI's in the admin none of them cope with the problem...
    Number one is the base dir (which you cant change back!) number two would ad the last item after the trainling slash like a map. e.g.
    http://www.protos.dk/blog.php/index.php :-)
    Well I might have to go with Muffinboy's suggestion like on this page:
    http://www.alexking.org/

  6. MsCantBWrong
    Member
    Posted 9 years ago #

    What about .htaccess?
    Type this command into your .htaccess file
    DirectoryIndex blog.php

  7. James
    Happiness Engineer
    Posted 9 years ago #

    Set up your blog just like normal in a sub directory ex: domain.com/wordpress/index.php, then create a php file with only <?php header('Location: http://www.domain.com/wordpress/index.php'); ?> in the file and no whitespace before it. Then, save it as blog.php and upload it to the main directory. Therefore, domain.com/blog.php will redirect to domain.com/wordpress/index.php . No extra WP configuration required.

  8. James
    Happiness Engineer
    Posted 9 years ago #

    Sorry, Kristian, I think I read your post too fast so my above trick won't help your particular problem. ...it is a cool trick though...

  9. protos
    Member
    Posted 9 years ago #

    Thanks a lot Mark! That is my oppinion too. I wonder why that is.
    WP would be even more powerfull as a script if it could serve as a blog-addon for existing sites instead of trying to be the whole site.
    Well WP is still the best one so Ill have to start working on this problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.