• If you’re having problems with links not woring because the index.php is dropped, I think I figured it out. I don’t have mod_rewrite on my host, so I can’t use permalinks and none of the other non-permalink options would work consistently for all links. For others in the same boat, here’s what I did.

    In the following files, replace all of the “/?” (without quotes) to “/index.php?” (without quotes)
    includes/template-functions-general.php
    includes/template-functions-links.php

    In this file, replace this line (line 32) “$catlink = $file . ‘?cat=’ . $category_id;” with
    $catlink = $file . ‘index.php?cat=’ . $category_id;

    I haven’t found any issues yet, but I haven’t thoroughly tested it, either. If there are some issues, let me know. Maybe this could at least lead us in the right direction. You can see it working here: https://www.jeboothjr.com

    This is gonna at least let me get my blog started. I hope it can help somebody else out, too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks, JEBoothjr, this is exactly what I was looking for.

    Maybe other people do what I’m doing: I’m installing WP while there is an existing (old) site still there. I had been installing WP in a subdirectory (e.g. /temp/) and then moving it when the new WP site was ready to go live. Just changing the URL (twice) in Options –> General.

    But sometimes I had absolute links in the site for whatever reason or maybe images (using ChenPress) had absolute links or maybe the links included /temp/ so when I went live, I had some cleaning up to do.

    This way, I can have the old site show up at https://www.domain.com and the WP site show up when I type in https://www.domain.com/index.php AND the cats and links all work.

    Again, thank you.

    – Bradley

    1.5.2 Update.

    A search in those same files comes up empty, so you’ll have to search for just the “?” (no quotes). I found the necessary ones in these three files, all in wp-includes:

    — template-functions-category.php
    — template-functions-general.php
    — template-functions-links.php

    If anyone finds anywhere else that needs changing, please post it here.

    – Bradley

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘myblog/?p=1 Dropped Index.php SOLUTION for v1.5’ is closed to new replies.