I have read through all the posts on enabling clean urls on 1and1.com on a drupal 5.1 installation. It keeps giving me this error message when i run the crean url test:

Error 500 - Internal server error
An internal server error has occured!
Please try again later.

Anyone with an experience? soooooo frustrating i am pulling my hair out!

Please help. Mark

Comments

erifneerg’s picture

i'm having the same trouble... bump

erifneerg’s picture

write an .htaccess file with this in it and then put it in the root of the drupal folder

# Various rewrite rules.
RewriteEngine on

RewriteBase /
# Alternatively if Drupal's in a sub dir, comment above line and uncomment below line
# RewriteBase /yourdrupaldirectory

# Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

found somewhere on the drupal site. sorry for the lack of source

Gurpartap Singh’s picture

Edit .htaccess

and change the following line:
#RewriteBase /drupal
to
RewriteBase /
(here we suppose that your drupal is installed in root of the website, otherwise if it's in a subfolder say "drupal", then you need to just uncomment the default line).

mdbrenna’s picture

thanks!

~M

lookatyeti’s picture

I know is an old thread, but I seems to be having the same issue today. (I try to avoid 1and1 for Drupal, but it works for low traffic sites.)

When first trying the install with just the Drupal Core (6.11 as of today), the install wouldn't allow for clean URLs, but after looking over all of the .htaccess settings, I discovered that on line 75 RewriteEngine on the on in this statement needs to be capitalized like this: RewriteEngine On and on line 101, uncomment the RewriteBase / and you'll have clean URLs on 1and1.

kerjef’s picture

mrtnyeti-

Wow; thanks! I just installed 6.12 on 1and1, followed your directions, and it worked for me, as well. Your first comment about it being an older thread cracked me up, because we both went back to it and got something out of it.

Thanks for posting your solution.

pwhite’s picture

Thanks - worked for me too on 1and1!

drcheers’s picture

worked like a charm

P.S. I just started another Drupal site on 1and1: http://www.stupidai.com

danpreston’s picture

worked like a charm.
old threads never die, not when they continue to help!

paulyd93’s picture

Thanks for the help!

itsca’s picture

Thanks, just try this out with drupal 8 and it worked! :D

matthews’s picture

Thanks, this is a very helpful thread.

Vlad34’s picture

Worked like a charm.

tchivoan1972’s picture

I still can't get this to work, tried the advice above and still can't get clean url with 1and1.
Any other idea?
changed my .htaccess file to

RewriteEngine On
RewriteBase /drupal-6.19

Pistachio Pony’s picture

jimmyg164’s picture

1and1 htaccess fix for drupal 6.22 worked

zareen’s picture

Thanks guys. This fixed my 1and1 clean url problem. I am in a VirtualDocumentRoot and needed to unslash#
RewriteBase and enter my directory after the slash /

Anonymous’s picture

Thanks Gurpartap Singh! uncommenting that line in .htaccess does the trick!

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase / (<---- this is the line that you need to uncomment)