My web hosting provider is 1&1. I installed Drupal 5.1 the other day and the installation went perfectly, but post-installation configuration didn't go as well because I couldn't get clean URLs to work. I found several posts in these forums related to clean URLs and 1&1, but none of their suggestions worked. I contacted 1&1 support and eventually got an answer.
Let's say my site it www.example.com. On the root of my 1&1 webspace I installed Drupal to the following directory (/example/com is the directory to which www.example.com points, so my site address is www.example.com/drupal):
/example/com/drupal
I kept reading about modifying the .htaccess file, which, for me, was residing at
/example/com/drupal/.htaccess
All the tips about uncomment this, comment that, didn't work because the file just will not work in that directory. What did work was to take the default .htaccess file, uncomment this line
#RewriteBase /drupal
and upload it to the parent directory of the Drupal installation
/example/com
There is no need to comment out the "mod_rewrite check" lines that surround the Rewrite rules...
...
...or make any other modifications to the file. Just uncomment that #RewriteBase /drupal line and upload it to the PARENT directory of the Drupal installation, not back into the Drupal installation directory!
Now, there are a couple things I still don't understand. What if I installed it to the root of my webspace? There would be no parent directory in to which install the .htaccess file. I must assume that, since others got this to work, this "stuff" (sorry I can't be more technical, I don't know much about this "stuff") behaves differently when you install to the root of your webspace.
Comments
I did
I have a .htaccess file that works. Contact me, and I can email it.
Re:
Hi Zahor,
I have the same problem. Can you send me the .htaccess file.
Paloma
.htaccess
Add .htaccess file from drupal tarball
remember clean url only works if and only if mod_rewrite module is enabled in the apache httpd.conf file
Suketu T.
Demarlos Solutions
www.demarlos.com
Got it working. Thanks
Thanks fesspoint, I got it working.
For me, I uncommented the line "RewriteBase /" and reuploaded .htaccess. This was a more suitable configuration for me.
Thanks
Ajay