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

Apache ModRewrite - No longer gives 404

Options
  • 06-10-2008 11:55pm
    #1
    Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭


    Question.. does anybody know whats resulting in 500 Internal Server Errors when Apache ModRewrite is in use and the client requests a page that is not there? Instead of getting 404s, the 500 message is appearing instead.

    Code in the .htaccess
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ $1.php [QSA,L]
    

    Suggestions? Cheers!


Comments

  • Registered Users Posts: 7,739 ✭✭✭mneylon


    You'd have to check the logs.


  • Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Sully


    mod_rewrite: maximum number of internal redirects reached. Assuming configuration error Use 'RewriteOptions MaxRedirects' to increase the limit if necessary.

    Googled that error but its not really giving me a solution that matches my problem. Suggestions?

    EDIT: Fixed. Got a better .htaccess solution.


Advertisement