Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: The requested URL /Index/index.php was not found on this server.

  1. #1
    pan
    pan is offline Junior Member
    Join Date
    Feb 2008
    Posts
    1

    Default The requested URL /Index/index.php was not found on this server.

    Hi,
    Do any one know what the problem for the following error?
    The requested URL /Index/index.php was not found on this server.

  2. #2
    akat78 is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Default

    I have the same error.

    I create the UserControler from this tutorial
    Zend Framework: Documentation

    but when i try to access http://localhost/user i am getting

    Not Found
    The requested URL /index.php was not found on this server.

    what i am doing wrong???

  3. #3
    akat78 is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Default

    i just fix it..

    the sollution:

    .htaccess file
    -----------------------------------------------------
    RewriteEngine on
    RewriteRule !\.(js|ico|gif|jpg|png|css|php)$ index.php
    php_flag magic_quotes_gpc off
    php_flag register_globals off



    Apache configuration:
    <direcory>
    Modify this => AllowOverride none to AllowOverride All
    </directory>

    Dont forget to enable RewriteEngine module.

  4. #4
    murugesanme is offline Member
    Join Date
    Feb 2008
    Posts
    54

    Question URL Changes Not working Required?

    Hi,

    I have created some basic files for ZF using html,applications,library folders. Then the url was like this.
    http://localhost/html/user/add

    And now i just removed the "html" folder and placed all the "html" folder files in the root directory itself. So, If i am trying to access the same like above action url, it is not functioning.
    http://localhost/user/useradd/ (without html directory).

    But if i use the index.php/controller/actionkey Then its working. How to solve this.
    http://localhost/index.php/user/useradd/


    Anyone plz tell me one solution.


    - Mugesh.

  5. #5
    Ivanico is offline Junior Member
    Join Date
    Mar 2008
    Posts
    1

    Default

    I'm having the same exact problem. It only works if I use index.php/user which is part of a tutorial I'm running.

    Did anybody replied about what might be the issue with this?

    Many thanks!

  6. #6
    xentek is offline Senior Member
    Join Date
    Feb 2008
    Posts
    112

    Default

    Verify that your server set up is correct and that .htaccess and mod_rewrite are working properly. I've never seen that before.

    Are you on the latest? 1.5 GA is out.

  7. #7
    orgos is offline Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Default

    Quote Originally Posted by xentek View Post
    Verify that your server set up is correct and that .htaccess and mod_rewrite are working properly. I've never seen that before.

    Are you on the latest? 1.5 GA is out.
    yes the .htaccess is fine, and test with various sentences

    the mod_rewrite are loaded from httpd.conf and runing fine too.

    Any other idea?

  8. #8
    xentek is offline Senior Member
    Join Date
    Feb 2008
    Posts
    112

    Default

    I just relized that you have the URL listed as /Index/index.php ... have you tried all lowercase?

  9. #9
    bgelfius is offline Junior Member
    Join Date
    Jul 2008
    Posts
    1

    Default The requested URL /Index/index.php was not found on this server.

    I don't know if this is too late but I had the same problem of everything appeared to be alright except when you would specify /public/index you'd get a 404 Url not found error. I had to make the following changes:

    My .htaccess file looks like this:
    RewriteEngine on
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php


    In my apache httpd.conf file

    Uncomment out the following line:
    LoadModule rewrite_module modules/mod_rewrite.so

    In the section where you tell apache about your document root
    <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/myapp/public">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # core - Apache HTTP Server
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All <=== change this line to All from None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

    </Directory>

    Restart Apache

  10. #10
    alfa_375 is offline Junior Member
    Join Date
    Sep 2008
    Posts
    1

    Default

    Quote Originally Posted by akat78 View Post
    i just fix it..

    the sollution:

    .htaccess file
    -----------------------------------------------------
    RewriteEngine on
    RewriteRule !\.(js|ico|gif|jpg|png|css|php)$ index.php
    php_flag magic_quotes_gpc off
    php_flag register_globals off



    Apache configuration:
    <direcory>
    Modify this => AllowOverride none to AllowOverride All
    </directory>

    Dont forget to enable RewriteEngine module.
    Thanks man I did fix my problem as you mention here. My worpress blog is working fantastic after this fix.

    Regards,
    Amer

Page 1 of 2 12 LastLast

Similar Threads

  1. Redirect index to none index?
    By mime in forum Core Infrastructure
    Replies: 8
    Last Post: 05-19-2011, 10:38 AM
  2. Use index
    By mmarti in forum Databases
    Replies: 0
    Last Post: 04-01-2010, 11:05 AM
  3. Raw post data not present without using "index/index"
    By anticucho in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 12-28-2009, 09:26 PM
  4. Forcing ZF to use index controller and index action always
    By flighty in forum Model-View-Controller (MVC)
    Replies: 3
    Last Post: 08-22-2009, 08:33 AM
  5. Not Found The requested URL / was not found on this server conf
    By nandana in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 03-16-2009, 03:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •