#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    95
    Rep Power
    0

    Post Why index without .php is directing to index.php


    Hello,

    I have put a project on a live server has Ubuntu Server 12.0.4 LTS. I have in the project folder the directories as below:

    index.php
    js_folder
    classes_folder
    images_folder

    When I go to the domain like: http://mydomain.com/index, it directs me to the website (but with missing AJAX call to load) instead of giving me error 404 - page not found. When I go to http://mydomain.com/WERQ, I get page not found.

    But when I go to the domain like: http://mydomain.com/index.php, it works fine!

    I tried on my windows WAMP, but this doesn't happen there!

    Could you please advise me how to check this problem?

    Thank you!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    95
    Rep Power
    0
    I don't have any folder called "index". I am really so curious why this happen and can't find any error in Apache2 error log! Would appreciate your hints.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    95
    Rep Power
    0
  6. #4
  7. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,958
    Rep Power
    4035
    I would suspect that it is probably due to Content Negotiation from the MultiViews option. Try disabling that using
    Code:
    Options -MultiViews
    in your .htaccess and see if the problem is still present.
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    95
    Rep Power
    0
    Originally Posted by kicken
    I would suspect that it is probably due to Content Negotiation from the MultiViews option. Try disabling that using
    Code:
    Options -MultiViews
    in your .htaccess and see if the problem is still present.
    Thanks! I solved this by removing it from sites-available

IMN logo majestic logo threadwatch logo seochat tools logo