• ctree

    (@ctree)


    Hi, my current host thinks they can afford to leave mod_rewrite disabled even if their customers ask for it. Go figure. They told me to do without permalinks. LOL.

    I have two worries because of that – how can I make sure wp does not touch .htaccess to add its rewrite rules (as this, uh, brings the site down)?

    I noticed it touches htaccess when you create a new page, for example. Will it stop touching htaccess *for good* if I set the permalink setting to “default”? Or do I need to do something else?

    Secondly, more interestingly, is there a way to get nice permalinks without mod_rewrite enabled (other than switching hosts)? I’ve read about nifty things you might do on IIS, or even install rewrite software, but is there something reasonably elegant that could be done? Oh, and sorry, I don’t want /index.php/ in my urls *after* I’ve prettified them lol…

Viewing 3 replies - 1 through 3 (of 3 total)
  • bassetts

    (@bassetts)

    There are ways of doing this but they appear to take a long time and can be easily broken just by adding a new category or similar. Your best bet is moving host if you really need permalinks.

    If you set wordpress to the default permalink setting e.g. /index.php?p=1 then wordpress does not touch your .htaccess and your site should be just fine.

    Someone please tell me if I am wrong and you can get this working without mod_rewrite and it is nice and stable.

    Doodlebee

    (@doodlebee)

    Codex on this issue.

    Thread Starter ctree

    (@ctree)

    Right.. thanks for that! My problem with the pages was that I had not reset the permalinks to default properly, because of the borkage introduced by htaccess. In case anyone else wants to know, I managed to properly reset it to the (un-pretty) default state like this: Set “default” on the permalinks page first. WP writes to htaccess and borks things. Replace the htaccess file with an original (which you will hopefully have) and then _re-load_ (i.e. re-post) the permalinks form. This way, it actually switches back to default. After that, no more trouble with htaccess it seems.

    I noticed this 301 redirect plugin by Dean Lee — it seems to offer a very elegant and easy solution, especially if you’re just starting out and don’t have to worry about old posts breaking.. can’t I use this to change my urls from the wp default to something else?

    The only downside seems to be that it requires the wp address and the blog address to be the same. Thoughts?

    P.S. I am a little disappointed with the lack of suggestions on the Codex page for apache without mode_rewrite — everything seems to center around how to use it on IIS. Unfortunately, not all hosts make mod_rewrite available.. Also, there’s a link to a different plugin by Dean Lee for IIS, which is different from the one I link to above.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘pretty urls without mod_rewrite?’ is closed to new replies.