tags:

views:

22

answers:

1

I want to convert the url:

http://example.com/calendar/?start=1281052769&end=1283731169

into the url:

http://example.com/calendar/1281052769/1283731169

This is what I have tried:

RewriteEngine on
RewriteCond   %{QUERY_STRING} start=(.*)
RewriteCond   %{QUERY_STRING} end=(.*)
RewriteRule   ^calendar$     http://example.com/calendar/%1/%2[R,L]
+1  A: 
RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} ^start\=([^&]+)\&end\=([^&]+)$
RewriteRule ^$ /calendar/%1/%2 [R,L]
Aaron Saunders