Hi

I am working on a very small website that has a few pages. The website goes down very often.

Web host - go daddy. When I checked with them they say it is possibly to do with the rewrite rule in the htacess file:

This is the file in the root directory:
---------------------------------------------
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

RewriteEngine on
#Added to keep from getting 500 errors at godaddy/ Clean URLs enabled
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
----------------------------------------------

What should the rewrite rule be?

I am not able to figure out the issue (php beginner) prompt help will be totally appreciated.

Thanks

Comments

bwv’s picture

Why have you removed the # from before the line that reads Rewrite base / ?

Are you working with a site llike drupal below, where drupal is here:

i.e., http://www.mysite.edu/drupal

And with drupal being the site you from whith the 500 error is emanating?

---------------------------------------------------------------------
http://www.bwv810.com/

I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу связывать на русском языке.

vidu’s picture

Thanks for replying!

I have not touched the code at all - I am new to this and have to get the site running!

So do I make the rewrite rule:

#Rewrite base /

Will this work?

It is a drupal based site.

The error that I get is something like:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator
Apache/1.3.33 Server

Thanks

bwv’s picture

Yes, add the hash mark. See what happens. If you need more help please contact me.

----------------------------------------------------------------------
http://www.bwv810.com/

I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу связывать на русском языке.

maku520’s picture

you can leave the RewriteBase directive uncommented as it doesn't make any difference (at least for my installation on a godaddy subdomain). that's not the problem: you have to add a forward slash before the index.php in the RewriteRule directive below that.