Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Apache Rewrite

  • 14-01-2008 11:33pm
    #1
    Closed Accounts Posts: 67 ✭✭


    I am having a small problem with the apache rewrite function and zend.
    If anyone knows anything about the both could you tell me how to fix my problem.

    My problem is that the server can't find my default index contoller when I type http://localhost/mysite/index/

    I mean I get a 404 apache error

    However it does find it when I type in
    http://localhost/mysite/index.php/index/

    or

    http://localhost/mysite/

    I am 99% sure its something to do with the apache server conf iguration over Zend.

    I haven't a clue how to fix it. Just fiddle with the apache configuration file I suppose.

    Does anyone know how to fix this problem

    Really apreciate it thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 706 ✭✭✭DJB


    I think this might be the rule you need:

    RewriteEngine On
    RewriteBase /mysite/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

    Rgds,

    Dave


  • Closed Accounts Posts: 35 dkell


    I had hours of fun trying to get Zend running yesterday!

    Did you uncomment the line:

    LoadModule rewrite_module modules/mod_rewrite.so

    in the Apache httpd.conf file?


  • Closed Accounts Posts: 8,478 ✭✭✭GoneShootin




  • Closed Accounts Posts: 67 ✭✭BRENSH


    Yeah I fixed the problem. Thanks for your help. It was in the Apache Configuration file. I didn't uncomment the .htaccess allow override line. I knew that already that I had to do that but the problem was I uncommented the wrong line.

    Thanks anyway.

    Speaking of Zend. I am just wondering what is the best way to retrieve $_GET information. Is it request::getQuery (unfiltered data) or is there a better more secure way.


Advertisement