Internal error 500 when editing htaccess

When I edit my .htaccess file, the server retunrs a 500 error but I'm sure that my .htaccess is good. To test, I've just add a row at the end of the file and when I've uploaded it, I've had a 500 error. Have you any ideas ?

My .htaccess file :

#URL REWRITING Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] ############################################### #Rediriger tout le monde sauf une ip vers la page d'attente - Dé-COMMENTER EN CAS DE MAINTENANCE #RewriteCond %{REQUEST_URI} !uploads/(.*)$ #RewriteRule .* maintenance.html [L] ########################################################### ### RETRAIT DU / SI MIS A LA FIN URL ### RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ /$1 [R=301,L] ######################################## ### REDIRECTION VERS LA PAGE DES TEXTURES ### RewriteRule ^textures$ pages/textures.php [L] RewriteRule ^textures/gerer/([a-zA-Z0-9-]+)$ pages/textures.php?page=gerer&action=$1 [L] RewriteRule ^textures/gerer$ pages/textures.php?page=gerer [L] ### REDIRECTION VERS LA PAGE DES PILOTES ### RewriteRule ^pilotes$ pages/pilotes.php [L] ### REDIRECTION VERS LA PAGE DE CONNEXION ### RewriteRule ^connexion$ pages/connexion.php [L] RewriteRule ^connexion/requis$ pages/connexion.php?type=requis [L] ### REDIRECTION VERS LA PAGE DE DECONNEXION ### RewriteRule ^deconnexion$ scripts/logout.php [L] ### REDIRECTION VERS LA PAGE DES VOLS ### RewriteRule ^vols$ pages/vols.php [L] ### REDIRECTION VERS LA PAGE DES VOLS EN COURS ### RewriteRule ^live$ pages/live.php [L] ### REDIRECTION VERS LA PAGE DE LA FLOTTE ### RewriteRule ^flotte$ pages/flotte.php [L] ### REDIRECTION VERS LA PAGE DE LA GALERIE ### RewriteRule ^galerie$ pages/galerie.php [L] RewriteRule ^galerie/ajouter$ pages/galerie.php?action=add [L] RewriteRule ^galerie/gerer$ pages/galerie.php?action=gerer [L] ### REDIRECTION VERS LE CENTRE D HEBERGEMENT ### RewriteRule ^upload$ pages/upload.php [L] RewriteRule ^upload/administrer$ pages/upload.php?action=gerer [L] ### REDIRECTION VERS LA PAGE D'INSCRIPTION ### RewriteRule ^inscription$ pages/inscription.php [L] ### REDIRECTION VERS LA PAGE EQUIPE ### RewriteRule ^personnel$ pages/personnel.php [L] RewriteRule ^personnel/contact$ pages/personnel.php?action=contact [L] RewriteRule ^personnel/contact/([a-zA-Z0-9-]+)$ pages/personnel.php?action=contact&service=$1 [L] ### REDIRECTION VERS LES PAGES ADMIN ### RewriteRule ^administration/utilisateurs$ pages/admin/utilisateurs.php [L] RewriteRule ^administration$ pages/admin/admin.php [L] RewriteRule ^administration/mail$ pages/admin/mail.php [L] RewriteRule ^administration/mail/([a-zA-Z0-9-]+)$ pages/admin/mail.php?action=$1 [L] RewriteRule ^administration/banniere$ pages/admin/banniere.php [L] RewriteRule ^administration/banniere/([a-zA-Z0-9-]+)$ pages/admin/banniere.php?action=$1 [L] RewriteRule ^administration/hubs$ pages/admin/hubs.php [L] RewriteRule ^administration/hubs/gerer/editer/([0-9]+)$ pages/admin/hubs.php?action=modif_hub&hub_id=$1 [L] RewriteRule ^administration/hubs/gerer$ pages/admin/hubs.php?action=gerer [L] RewriteRule ^administration/securite$ pages/admin/securite.php [L] RewriteRule ^administration/securite/([a-zA-Z0-9-]+)$ pages/admin/securite.php?action=$1 [L] ### REDIRECTION VERS AVATARS ### RewriteRule ^avatar/([a-zA-Z0-9-]+).png$ scripts/avatar.php?pseudo=$1 [L] RewriteRule ^avatar/ivao=([a-zA-Z0-9-]+).png$ scripts/avatar.php?pseudo=$1&param=ivao [L] RewriteRule ^avatar/([0-9]+)=ivao=([a-zA-Z0-9-]+).png$ scripts/avatar.php?pseudo=$2&param=ivao&width=$1 [L] RewriteRule ^avatar/([0-9]+)=([a-zA-Z0-9-]+).png$ scripts/avatar.php?pseudo=$2&width=$1 [L]

--------------Solutions-------------

I copied/pasted my htaccess content in a new notepad file. Then I saved it as .htaccess and I chose the ANSI charset.

Category:apache Time:2018-11-08 Views:0

Related post

  • Server error 500 when adding .htaccess file in the root folder 2011-03-21

    I read a lot of server error 500 questions related to the famous .htaccess file...but I have still not found an answer to this error. I have a folder which i used to test the .htaccess file. =>http://localhost/xampp/example/ I copied the .htaccess

  • Internal Error 500 when accessing a webservice using jquery 2011-08-02

    I'm using jquery to get a response from a webservice. The code is the same as I have seen used by many others without problems. I'm using a free webservice from http://www.service-repository.com/ just for testing. My code looks like this: jQuery.supp

  • PHP and AJAX - internal error 500 2012-02-07

    I am trying to make a simple AJAX calling in PHP and have a problem with Internal error 500. When I click on the link, so the data are successfully loaded - this I see through FireBug, but I got the error above. It's on localhost. When I try to set t

  • Error 500 when updating Twitter status using fsock and oauth 2010-09-06

    I am having some slight problem with Twitter Oauth and fsock. The reason I am using fsock, is to cater people that do not have curl installed. So here goes my problem. I was able to use fsock to get the access token however when I use fsock to update

  • Codeigniter error 500 when attempting to load lang file 2012-02-27

    I've installed Lubuntu 11.10 x86 on my home server. I previously had Win XP. The server runs well. Apache, PHP and MySQL work great except when it comes to CodeIgniter and language files. First of all php works, I've tested with non CI projects and i

  • Internal Error 2753 when unistalling adobe reader 8 2012-01-30

    Internal Error 2753 When trying to unistall adobe reader 8. Will not let me unnstall adobe reader 8. --------------Solutions------------- Hi JamesSnow, The 2753 error can appear when a (previous) installation of Adobe Reader has become corrupt. You m

  • i get an internal error message when trying to install Adobe 9 2013-09-16

    i get an internal error message when trying to get Adobe 9 to install? Also, I cannot print from Publisher and cannot figure out why --------------Solutions------------- For the Adobe problem: http://social.answers.microsoft.com/Forums/en-US/vistapro

  • getting error 500 when trying to use gzip with .htaccess 2010-02-01

    I'm trying to use gzip on my site. I'm trying to compress, php, css and js files. The server is apache 1.3, and the code I have in the .htaccess file is: # compress all text & html: AddOutputFilterByType DEFLATE text/html text/plain text/xml But

  • Internal Server error 500 when trying to present XML format as REST service response 2011-01-28

    This is regarding CXF REST service where in case of exception XML error tags will be the output. @XmlRootElement(name = "error") public class ErrorXMLBean { private String code; private String description; public RestServiceErrorXMLBean(){ this.code

  • Drupal PHP - Internal Error only when erasing file upload and saving 2012-04-30

    The issue I'm having the following: I can create a new node, I have two upload fields for images that can initially be uploaded no problem. I can go back and edit node content and save, also no problem. When I try to erase either image attachment and

  • WCF and IIS error 500 when using diagnostics 2010-09-12

    I have problem with WCF on IIS when using diagnostics. When I call the service I get the following error: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.. If I remove "system.diagnostics" section I dont get

  • Why do I get an error 500 when I send POST data to an ASP.NET MVC site through Android? 2011-05-21

    I'm trying to create an android app to check my tests scores of my engineering school. In order to download the Word containing the scores, I need to login to the portal. I thought it would be simple to do it by sending a POST request. After bypassin

  • Server Error 500 when fetching rdoc gems 2011-08-07

    I am trying to run a bundle update on my Mac which has been upgraded to Lion. It is consistently failing to fetch rdoc, with the following error. /Users/anita/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems /remote_fetcher.rb:215:in `fe

  • Obscure SOAP Bug (?) in PHP: Timeout generates an internal Error (500) 2011-10-10

    I'm accessing a remote SOAP Service that tends to be reacting very slow from time to time (we're talking about more than 10 seconds here). System is PHP Version 5.3.1, running on Windows Server 2003. My client is set up like this: new SoapClient($wsd

  • Oracle DataAccess Data provider internal error -3000 when deployed 2011-04-12

    I'm having an issue with a web service i have created. It is running fine when running on localhost on my PC. The problem is, when I deploy the web service to a remote IIS server, I keep getting "Data provider internal error(-3000)". It always occurs

  • Why do I get an error 500 when I send a GET request? 2011-05-22

    I am trying to send a simple GET request, as it is explained here : How to use java.net.URLConnection to fire and handle HTTP requests? The web page I'm pointing to is : https://e-campus.hei.fr/ERP-prod/ And I get this HTTP500 error : Exception in th

  • Error 500 when deleting lots of products 2011-08-12

    I'm using Magento 1.4.0.1 I'm trying to delete products based on their sku. I searched in the product manager and have found and selected the ~9000 products which must be deleted. When I try to delete them it hangs for a bit then gives me error 500.

  • Getting error 500 when adding RewriteCond with .to domain 2011-09-01

    I am trying to redirect traffic coming from a specific domain inside my .htaccess file. It works fine unless I do this for a domain with a .to extension. Any idea what is going on here? Produces error 500: RewriteCond %{HTTP_HOST} ^(www\.)?domain\.to

  • .css and .js returns error 500 when called by HTML, but not when opened in new tab 2011-10-31

    No files that are requested by the HTML (i.e. <link> tag, or <script src=... tag) work. Every time they return error 500 regardless of the browser. If I open the said file in a - I see the contents correctly. I can right click the URL when I

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 2.414 (s). 14 q(s)