Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2008, 09:55 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default routing doesn't work properly

Hello everybody,

I have implemented the mvc pattern according a tutorial. Now,

When i do this:

http://217.149.198.122/index
it works ok. But when i do:

http://217.149.198.122/persoon, i get an HTTP 404 while I am doing the exact same thing.
What could be wrong, i (double)checked everything.


//its running on apache2. It looks like it's some server setting but I don't know which and where.

Last edited by jsanders : 03-14-2008 at 06:26 AM. Reason: extra infromation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 12:41 PM
Junior Member
 
Join Date: Feb 2008
Posts: 15
Default

Did you put your .htaccess like the quick start told you to?

Also, check your apache mod_rewrite is fully enabled.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 11:04 AM
lucasm's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Įguas Claras-DF, Brazil
Posts: 13
Question Same problem

Guys,

I have the same trouble!!!
I tried a lot of examples and tutorials but this error occurs in each one.

My index route works well but no one other route works.

http://192.168.203.128/demos/conta/ (base dir) this one works
http://192.168.203.128/demos/conta/user/ this one doesn't work
http://192.168.203.128/demos/conta/error/ this one doesn't work

I put the rewrite (.htaccess) as I red in the docs...
Code:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
...and my mod_rewrite is loading:
Code:
Loaded Modules 	core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file 
mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi 
mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status
I know this is a ultra-basic problem... but I couldn't resolve it by myself.

cheers,
__________________
Lucas Mauricio C. e Martins
CR Vasco da Gama, my biggest passion!

Ajude a Combater o Spam! - Help fighting spam!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2008, 11:00 AM
lucasm's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Įguas Claras-DF, Brazil
Posts: 13
Thumbs up Solved!!!!

hi folks,

After a lot of headache, I finally have found the solution to my problem!!!!!

There's some additional steps to do in the apache's configuration to "clean routes" work in ZF.

I found some articles yesterday that explains it better:

Akra's tutorial
Felipe Tonello's tutorial (in portuguese)

In fact, the directive above must be configured in apache's file httpd.conf:

Code:
<directory />
    Options FollowSymLinks Includes
    AllowOverride All
</directory>
Hope to help others with the same problem!

regards,

ps: I'll ask the maintainer's ZF documentation to include this in the manual.
__________________
Lucas Mauricio C. e Martins
CR Vasco da Gama, my biggest passion!

Ajude a Combater o Spam! - Help fighting spam!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:04 AM.