Forums

My solution for custom permalinks without mod_rewrite (11 posts)

  1. eamgt
    Member
    Posted 2 years ago #

    I've implemented custom permalinks on my Yahoo hosted blog, without using mod_rewrite or .htaccess, which Yahoo does not support.

    I created a physical folder strucure for archives and categories, plus name-of-post.php style permalinks, which automatically perform redirects back to the blog root index.php file by way of a new, generic redirect.php file.

    Details here:
    http://austinmash.com/blog/finally-got-my-custom-wordpress-permalinks-working.php

  2. moshu
    Member
    Posted 2 years ago #

    Your site (at the link you gave above) is totally borked - the layout is all screwed up when viewed in FF.

    On the "permalink" issue: wouldn't have been simpler to move to a good host that supports mod_rewrite?

  3. eamgt
    Member
    Posted 2 years ago #

    Hi!
    I am running Firefox 1.5.0.1 on Win XP, and the post looks fine. Please let me know what environment you are using.

    Anyway, if you could read the post, I do explain that I do not want to switch hosts, and that I saw so much frustration with this issue in my research, I thought it might be worthwhile to try to come up with a solution, that at least partially works (the limitations are also in the post).

  4. moshu
    Member
    Posted 2 years ago #

    Well, I couldn't read because it looks as it looks. FF 1.0.7.

  5. eamgt
    Member
    Posted 2 years ago #

    Oops, I just noticed the solution is not complete, in that it doesn't handle category feed URLs, or post comment feeds. I'll update my blog entry when I've got that done. Sorry.

    And, if you'e running an older browser, try the RSS feed:
    http://austinmash.com/blog/?feed=rss2

  6. eamgt
    Member
    Posted 2 years ago #

    I've added support for feeds and trackbacks. As a consequence, I changed my post URLs from /name-of-post.php to /name-of-post/, so the above link to the post is obsolete. The new link is

    http://austinmash.com/blog/finally-got-my-custom-wordpress-permalinks-working/

    I will detail the changes in a new blog post on my site tomorrow, but in essence I had to create /feed/ subdirectories under each category, plus /feed/ and /trackback/ folders under the new post folders, and I added a couple of sections of code to redirect.php.

    This solution is not all that elegant, I end up with a bunch folders and sub folders for every post. At least, they are all copies of each other, except for the folder name, so creating new ones is not a big deal. And, I have custom permalinks without mod_rewrite. Yay...

  7. IIIIIIIV
    Member
    Posted 2 years ago #

    You're right, it's not elegant. The word "kludge" comes to mind, but whatever works for you.

    BTW, pages looks OK to me, FF 1.5.0.1 on W2K. Just takes a little while to load (DSL from the other side of the world to the US)

  8. eamgt
    Member
    Posted 2 years ago #

    Kludge, you say? Well, unfortunately I have to agree. I'm hoping someone with more expertise can clean it up a little.

    As I understand it, WordPress and Yahoo have some kind of cross-promotion going on, so it's frustrating that Yahoo has not addressed this issue, either by enabling mod_rewrite, or implementing some kind of workaround. (I have enabled their "customizable permalinks" plugin, but obviously if that had worked, I wouldn't be writing this)

    I am (not so) secretly hoping Yahoo will pick up on this idea, and maybe use it as a basis for their workaround to make custom permalinks work - assuming they are dead set against enabling mod_rewrite. In the meantime, I hope this post will help others in my predicament.

    - Just a long winded way of saying I'm open to suggestions on how to improve this mechanism

  9. eamgt
    Member
    Posted 2 years ago #

  10. IIIIIIIV
    Member
    Posted 2 years ago #

    The obvious solution is to change hosts to one who does allow URL re-writing, but you've ruled that out. So, now you're in search of a non-obvious solution and I wish you well. :)

  11. nathanmx
    Member
    Posted 2 years ago #

    Here is a way I came up by just changing ur custom error page and then adding a part of code to Wordpress.

    http://www.nathanm.com/2006/07/02/wordpress-permalinks-removing-indexphp-in-iis.html

Topic Closed

This topic has been closed to new replies.

About this Topic