http://www.mysite.com/calendar/view/December/2006
Maybe somebody can spot where I'm going wrong. This is my .htaccess file (seems to be working how it should):
Code: Select all
RewriteEngine on
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /calendar/index.phpCode: Select all
$router = new Zend_Controller_RewriteRouter();
$router->addRoute(
'view',
new Zend_Controller_Router_Route(
'/Event_Calendar/:month_:year/index.html',
array('controller' => 'events', 'action' => 'view', 'year' => date('Y', time())),
array('month')
)
);EDIT: I've also tried this configuration with no success:
parameters being sent... why?
Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_URI} /Event_Calendar/([a-zA-Z]*)_([0-9]*) [NC]
RewriteRule ^([a-zA-Z]*)_([0-9]*)/index.html /calendar/view/$1/$2 [L]
RewriteCond %{REQUEST_URI} (/Event_Calendar/index.html|/Event_Calendar) [NC]
RewriteRule (.*) /calendar/index.php [L]Code: Select all
$router = new Zend_Controller_RewriteRouter();
$router->addRoute(
'view',
new Zend_Controller_Router_Route(
'/calendar/view/:month/:year',
array('controller' => 'event', 'action' => 'view', 'year' => date('Y', time())),
array('month')
)
);