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

    Join Date
    Oct 2009
    Posts
    75
    Rep Power
    5

    [Q] How to configuring apache to requires file extensions?


    I'm trying to make Apache requires file extension, so when the url is like:

    http://site.com/profile
    i want the response to be 404

    only if the file extension is there it can open normaly
    http://site.com/profile.php


    Thanks.
  2. #2
  3. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1099
    Apache should return a 404 if "profile" is not an existing directory or file unless you have some other configuration that you're not showing us.

    What does site.com/profile show you?
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.

IMN logo majestic logo threadwatch logo seochat tools logo