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 ModRewrite - No longer gives 404

  • 06-10-2008 10: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, Registered Users 2 Posts: 7,740 ✭✭✭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