• Resolved octavianb

    (@octavianb)


    Is there any way to re-include index.php in ugly permalinks in WordPress 2.7? I have a weird server setup which I cannot change which requires me to have things running in this way – the server defaults to home.php instead of index.php (which is the blog) and thus none of the permalinks work. Any help or suggestions would be very much appreciated. Thanks a lot in advance! best, Octavian

Viewing 12 replies - 1 through 12 (of 12 total)
  • I don’t quite understand. Can you give examples? And a link is always helpful, but examples would make it much clearer what you need to do and what it is doing currently to figure out how to get you where you want to go.

    Also are you in control of the server? You should be able to edit the .htaccess to make the server use index.php over home.php. but… I am guessing, you can’t edit the .htaccess file, and that is why you need “ugly permalinks”?

    Thread Starter octavianb

    (@octavianb)

    Jcow,

    Thanks for the swift reply, indeed I do not have editing privileges for the .htaccess file. Here’s a link to the blog: http://www.queensu.ca/philosophy/index.php . The issue is that whenever I click on a category, it brings it to /philosophy/?cat=x which opens up to home.php instead of index.php which means nothing shows up. I hope this clarifies the problem? Thanks again. -Octavian

    Thread Starter octavianb

    (@octavianb)

    Just an addendum to the above. I’m hoping it could open up to /philosophy/index.php?cat=x which would fix the problem. -Octavian

    Have you tried editing the permalinks page?

    This should work, but let me know.

    Settings > Permalinks

    add a “Custom Structure”: index.php/%year%/%monthnum%/%postname%/

    And that should actually give nicer looking urls, but just with the index.php in them, which allows you to not need the .htaccess.

    I am a little rusty on this issue, but I believe that has worked for me in the past.

    Thread Starter octavianb

    (@octavianb)

    Thanks for this jcow, unfortunately, while it works, the design completely drops out of the picture for some reason? http://www.queensu.ca/philosophy/index.php/category/colloquium/ .

    Ha. sorry that must have been surprising.

    change this line:
    <link href="style.css" rel="stylesheet" type="text/css">

    to something like this:
    <link href="<?php get_bloginfo('url'); ?>/style.css" rel="stylesheet" type="text/css">

    When you get into permalinks, it tricks the browser into seeing directories when there really aren’t any, so you can’t use a relative path to files like that. Absolute paths make it a lot easier.

    You could also just use:
    http://www.queensu.ca/philosophy/style.css

    but the other path is more dynamic in case your blog changes or something…

    Thread Starter octavianb

    (@octavianb)

    Hi jcow,

    Thanks again for this. Is there any way to set the default path for the whole thing without going one by one? I’d basically have to hardlink the whole menu otherwise. It’s certainly not a problem, it just won’t look pretty. -Octavian

    Thread Starter octavianb

    (@octavianb)

    Thanks again. I hardlinked everything that needed to be so and it all works splendidly now. best, Octavian

    Great! glad it is working.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Better way: Add DirectoryIndex index.php to the .htaccess file.

    Im also experiencing the same issue. We have the wordpress blog installed in a subdirectory of a main directory. I want to get rid of index.php from permalinks

    i hope the wordpress developers can help us

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘index.php in ugly permalinks’ is closed to new replies.