• 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

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter protos

    (@protos)

    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…?

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

    Thread Starter protos

    (@protos)

    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.
    https://www.protos.dk/blog.php/index.php ??
    Well I might have to go with Muffinboy’s suggestion like on this page:
    https://www.alexking.org/

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

    Moderator James Huff

    (@macmanx)

    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: https://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.

    Moderator James Huff

    (@macmanx)

    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…

    Thread Starter protos

    (@protos)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not index.php – blog.php plz’ is closed to new replies.