WordPress.org

Ready to get started?Download WordPress

Forums

permalinks and "index.php" (9 posts)

  1. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    It won't work with cruft like the index.php there.

  2. prara
    Member
    Posted 10 years ago #

    Don't be afraid bots will still catch your perma

  3. ckelly5
    Member
    Posted 10 years ago #

    it was more of an easy transition from the mt directory structure to wp than anything (in terms of redirection).
    guess I'll just have to take that into account when I do do a redirect script.
    thanks.

  4. unoamigo
    Member
    Posted 10 years ago #

    If your comfortable editing your rewrite rules, you can pretty well make the URL for your archives anything you want.
    In your case though, you probably don't need to use rules other than those supplied by WordPress. Just change the option for your permalink path to be:
    /journal/archives/%year%/%monthnum%/%day%/%postname%
    The comments are not showing up because you are not linking to a specific post. For example, this works:
    http://www.frankentosh.com/b2/archives/2004/05/17/patricks-big-interview/
    Yet this will not show comments:
    http://www.frankentosh.com/b2/archives/2004/05/17/

  5. ckelly5
    Member
    Posted 10 years ago #

    yeah, I just found out that your second example doesn't work either.
    gotta think about how I want to set this up. I was hoping to avoid the postname (just doesn't look *right* to me), but it's starting to grow on me. or like you said, perhaps I'll just start hacking on the rewrite rules.
    thanks!

  6. ckelly5
    Member
    Posted 10 years ago #

    actually on second thought, the postname approach will work, and I can still write a forwarding rule to go to the permalink date dir (e.g. http://www.frankentosh.com/b2/archives/2004/05/17/) and have the individual post name (or post id) be the link with comments.
    your help is much appreciated.

  7. unoamigo
    Member
    Posted 10 years ago #

    You can use the post number instead of the name if you want. It does make for a bit cleaner of a uri.
    Your links won't break just having the date in there. If someone wants to leave a comment, they can always click to do so.
    Enjoy.

  8. robgreeley
    Member
    Posted 9 years ago #

    I have been working with the permalinks structure and trying to remove the /index.php/ from my URL's - it is superfluous, and I would rather not expose this part of the structure to the public.
    When I edit it out of the permalink structure, however, the site no longer works.
    Is this line required? Is there a way to remove it? Does someone have an example?
    Thanks

  9. cheewee2000
    Member
    Posted 9 years ago #

    I've had the 'index.php' as part of my permalinks for a while and I now want to simpify the structure without breaking any links. How do I go about this? I've seen how the old b2 wordpress permalinks could be redirected to the new, but I don't know enough code to figure out how to modify a simple change in permalink structure to suit my needs. I want to redirect

    /index.php/archives/%year%/%monthnum%/%day%/%postname%/
    to
    /archives/%year%/%monthnum%/%postname%/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.