I'm hosted with Dreamhost and when my site was running Drupal 4.7 clean urls worked fine. I've now created a new site using Drupal 5.0 but now the clean url test lands me on the '404 Not Found' page. I've hunted high and low but cannot figure out how to get clean urls working on this new site.

Regards,

Ole

Comments

gharbeia’s picture

I had a similar experience. I realized I had extracted the tarball outside my domain directory then moved all files into it. I thought I moved all files, but .htaccess was not moved. Now I have .htaccess in my domain folder and clean URLs work.

Amr Gharbeia

joemoraca’s picture

depending on your FTP client you may or may not see "hidden" files such as those that begin with . so that is why you may have missed the .htaccess file.

It works great for me.

Joe Moraca
http://www.moraca.org

cburschka’s picture

I've had no problems getting clean URLs to work on Dreamhost with Drupal 5, so that's definitely not the issue.

Since DH offers shell access, you might give a thought about doing all this through SSH rather than FTP. It's much faster and you can be sure none of the files are missing. Putty is a good client for SSH.

This should work:

  mkdir downloads
  cd downloads
  wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-5.1.tar.gz
  cd ~
  tar -xzvf downloads/drupal-5.1.tar.gz

Then you have a clean and complete version of Drupal in the folder "drupal-5.1", which you can replace your current sub.domain.com folder with (after copying settings/modules/themes/etc, of course).

--
Arancaytar Ilyaran

stormer’s picture

that sounds quite promising. However, my knowledge of all the above is EXTREMELY basic so please forgive my next question - where do I find this .htaccess file?

thanks

Ole

HedgeMage’s picture

Your FTP client should have an option to show hidden files. In Linux environments, such as Dreamhost's Debian-based systems, beginning a file name with '.' makes it "hidden". This is used for system files and such mostly as a way to reduce screen clutter. Another way to see hidden files is to log in via ssh, navigate to the directory, and type 'ls -a'. The command to remove .htaccess via ssh is 'rm .htaccess'

Dreamhost runs a live IRC chan on irc.freenode.net called #dreamhost and folks there (employees and other DH customers alike) are very friendly and helpful.

stormer’s picture

I've got 'show hidden files' active but still not showing the .htaccess file. Where in the Drupal folder that I download from this site would I find the .htaccess file to upload to my server?

Chill35’s picture

It's in the the root of the unzipped folder.

If you use a GUI ftp app to ftp this file, the file may not be visible after the transfer but it will be there.

Caroline
11 heavens