Page 1 of 1

Strange mod_rewrite behaviour...

Posted: Fri Dec 22, 2006 4:07 pm
by Luke
I have a rewrite rule (very simple) like this:

Code: Select all

RewriteEngine On

RewriteRule (.*) /ChicoChamber/index.php
and this is placed in the /Events_Calendar directory...

So I type http://www.mysite.com/Events_Calendar/add and it tells me that "ar" controller doesn't exist... where would it be getting "ar" from? The only think I can think of is the end of Calendar, but that makes no sense! This probably isn't enough information, but any advice will help me.

Posted: Fri Dec 22, 2006 4:13 pm
by John Cartwright
you are using Zend Framework correct?

Posted: Fri Dec 22, 2006 4:19 pm
by Luke
yes I'm sorry I meant to mention that :oops:

here's a print_r of my request object... not sure if it helps, but maybe

Code: Select all

Zend_Controller_Request_Http Object
(
    [_requestUri:protected] => /Event_Calendar/view
    [_baseUrl:protected] => 
    [_basePath:protected] => 
    [_pathInfo:protected] => /Event_Calendar/view
    [_params:protected] => Array
        (
        )

    [_aliases:protected] => Array
        (
        )

    [_dispatched:protected] => 
    [_controllerKey:protected] => controller
    [_actionKey:protected] => action
)

Posted: Fri Dec 22, 2006 4:33 pm
by John Cartwright
try doing things without the underscore