Jump to content

[SOLVED] Rewrite not working justWrite


dustinnoe

Recommended Posts

I am running apache 1.3.33 and I have the following rewriteRules

#Calendar
RewriteRule ^calendar$ calendar/ [R]
RewriteRule ^calendar/?$ calendar.php
#day view
RewriteRule ^calendar/today$ calendar/today/ [R]
RewriteRule ^calendar/today/?$ calendar.php?action=day&date=today
RewriteRule ^calendar/([0-9]+)-([0-9]+)-([0-9]+)$ calendar/$1-$2-$3/ [R]
RewriteRule ^calendar/([0-9]+)-([0-9]+)-([0-9]+)/?$ calendar.php?action=day&date=$1-$2-$3
#add event
RewriteRule ^calendar/add-event/(single-day|multi-day)$ calendar/add-event/$1/ [R]
RewriteRule ^calendar/add-event/(single-day|multi-day)/?$ calendar.php?action=add-event-$1

 

Now my problem is that no matter what I enter after calendar/ it always rewrites to calendar.php

 

So that...

 

calendar/today/                    -rewrites to>  calendar.php

calendar/not_even_a_rule/      -rewrites to> calendar.php

calendar/just/does/not/matter/ -rewrites to> calendar.php

 

 

Also the [R] flag just seems to be ignored.

 

 

This setup works great under apache 2.0, any idea why it's behaving this 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.