• I’ve seen this asked but never correctly answered.

    I want to change index.php to blog.php and have it reside in the ROOT folder – Why? because I already have an index.php page for my main site.

    Why not put it in it’s own folder you ask? – because I use include files for my site and that would require changing relative paths to absolute paths.
    Example: My home page is index.php which pulls in includes/navigation.php and also calender/calendar.php.

    If my blog is in its own folder (blog), then the include files within the calendar script look like “mysite.com/blog/calendar/images/…”

    When I change index.php to blog.php, The link always goes to mysite.com/blog.php/ – notice the slash after blog.php. It’s trying to send it to another folder.

    Any help is appreciated.

Viewing 1 replies (of 1 total)
  • There are others who will have the 100% certain answer, but my 90% certain answer says “you can’t do it” [have WordPress start in blog.php]

    Unless I misunderstood you, I think you can get everything working by putting WordPress in its own folder. And having a second copy of the /includes/ folder in the root (as well as WordPress’s real copy as a subfolder of your WordPress folder). And whatever other duplicate copies of folders you require to make it all work.

    It may not be elegant, but these are read-only files (in /include/, etc.) so there are no issues with things getting out of sync. Except, of course, when you upgrade WordPress, when you have to remember to update the extra copies of the folders.

Viewing 1 replies (of 1 total)
  • The topic ‘Change index.php to blog.php’ is closed to new replies.