Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Apache ModRewrite - No longer gives 404

  • 06-10-2008 11:55PM
    #1
    Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,068 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,742 ✭✭✭mneylon


    You'd have to check the logs.


  • Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,068 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