Strange mod_rewrite behaviour...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Strange mod_rewrite behaviour...

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

you are using Zend Framework correct?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

try doing things without the underscore
Post Reply