dustinnoe Posted May 31, 2007 Share Posted May 31, 2007 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 https://forums.phpfreaks.com/topic/53699-solved-rewrite-not-working-justwrite/ Share on other sites More sharing options...
dustinnoe Posted June 1, 2007 Author Share Posted June 1, 2007 Installed apache 2.0.59 and problem go bye-bye. I honestly think there is some sort of bug with 1.3 on WAMP. Link to comment https://forums.phpfreaks.com/topic/53699-solved-rewrite-not-working-justwrite/#findComment-266096 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.