Hi, i am able to access my website http://current-weather.info/ however when i enter the city name. I get an 500 internal server error. i have checked in the error logs and i found the below mentioned error message. I am hosting my site at godaddy , i have contacted the tech support and they are of no help and advised me to research on the internet i believe the problem is with .htaccess and i need to add some thing to the .htaccess file. I have not made any recent changes to the site. Error message : " [Sun Aug 1 02:21:47 2010] [error] [client 115.98.203.238] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary." contents of my .htaccess: RewriteEngine on RewriteCond %{REQUEST_FILENAME} -f RewriteRule (.*) $1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*)$ index.php?page=$1 [L] Thanks in advance.
Try changing your .htaccess to RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*)$ index.php?page=$1 [L] Code (markup): You were telling it that if the file existed then use the file which results in a loop.
I have changed the .htaccess as advised still does work. i am getting the same error 500 internal server. anything else that you can think of ?
Yeah thats right same error in the log file and only the code that you have mentioned is in the .htaccess file.
Try adding a RewriteBase to it so you have: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*)$ index.php?page=$1 [L] Code (markup):
thanks a ton. now its working , i just made a small change to the code that you have suggested . Once again thanks a lot.