I'm moving a constructed Drupal site form a development environment to a live server. The client has bought the "Linux Developer" package with Fasthosts.
If I move the .htaccess that was working fine on our dev server to the live server the whole site breaks, with an Internal Server Error message. Nothing in the error log thats any use.
I've checked with phpinfo() and apache is loading mod_rewrite.
While I'm waiting for the client to send the tech support info, I just wondered if anyone might have had a similar experience? I've searched and most info relevant to this issue seems to be packages with no mod_rewrite or very limited functions enabled for htaccess. However I've had no success so far trimming out optional bits in the htaccess file.
TIA
R
Comments
My guess is that it is the
My guess is that it is the final mod_rewrite rule in .htaccess that is causing the problem, and conflicting with some other Apache rewrite rules or other settings/parameters.
Are clean URLs turned on?
Do any of these URLs work:
yoursite.com/?q=node
yoursite.com/index.php
yoursite.com/index.php?q=node
gpk
----
www.alexoria.co.uk
Some success
Yes, this format worked when clean urls was on - i used it to get access to admin and switch them off: yoursite.com/?q=node
By the final rule do you mean this line?
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
And the 2 lines above it,
And the 2 lines above it, which are part of the same rule.
Do any of those URLs work now?
gpk
----
www.alexoria.co.uk
Solved
fasthosts pretty much only allow rewrite rules in their htaccess. I had to remove everything except the URL rules. My htaccess is below in case anyone else has same problem:
Thanks for the replies though GPK :-)
OK glad you got to the
OK glad you got to the bottom of it. Will be of use to other Fasthosts users I'm sure.
gpk
----
www.alexoria.co.uk
It just was...
Thanks for the tip - I'd realised that fasthosts barfed on most of the .htaccess, so had it all turned off, but have now got clean URLs working nicely.
Cheers.
htaccess mod_rewrite
This worked!!! -thanks -you save me loads of time trying to sort this one!
Big help
This sorted my problems with my site that I'd uploaded to my host Net Explorers.
Thanks so much
Support for families with children with medical conditions: http://www.parentsown.co.uk
Buy allergen free foods from http://www.freefromforkids.co.uk
security
Won't that mean that people can access directories such as http://www.yoursite.com/themes ?
What
makes you say that? I really have no clue when it comes to these things but I'd be interested to understand what it is in that code that makes you think it will allow access to certain directories (just for my own understanding).
Thanks
Support for families with children with medical conditions: http://www.parentsown.co.uk
Buy allergen free foods from http://www.freefromforkids.co.uk
Fixed mine too
Hi. I had raised a support call with fasthosts and their reply was to ask if they could reset my ftp password and 'demostrate' that rewrites were working. Since they offered no more information than that I declined and asked for them to phone me. They can't dial outside lines though so I said I would come look here.
I'm glad I did. Two minutes later and my site is running with clean urls. Thanks :)
Thanks!
Thanks so much for this solution! Worked immediately and saved me hours of frustration...
Drupal 6.10 on fasthost .htaccess
this cut down version of the default .htaccess file worked for me on a Fasthosts:
can anyone see any potential problems in loosing some of the config in the default .htaccess?
tried this?
http://drupal.org/node/31725#comment-79506