Jump to content

Blog Rewrite Fails


unemployment

Recommended Posts

More details required. The rule you have looks like it will successfully serve up /blog.php?post_id=title-of-the-blog-post if the user requests /blog/title-of-the-blog-post , if you are expecting it to do more than that, it won't.

Link to comment
Share on other sites

It's certainly not going to work with just what you have. You could add another rule to make that rewrite, the problem with doing that is that you end up with an infinite loop. When somebody visits existing they get redirected to new, which get's rewritten to existing which gets redirected to new... and you end up with an infinite loop. There are hacky ways around it, but I'm yet to come across a neat way.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.