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
https://forums.phpfreaks.com/topic/53699-solved-rewrite-not-working-justwrite/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.