Clean URL's need .htaccess File

If you can't get clean URLs to work on your Drupal installation and you are sure you have everything correct, you might want to check your .htaccess file. This first thing is to make sure you have one.

I have found out that sometimes I miss this file. This is because I installed Drupal by dragging all the files and folders over to my server, but since the .htaccess file starts with a period, OS X hides it. This means that the .htaccess file was never moved over.

So if you are doing a fresh installation and you are dragging over the files and folders that are necessary, make sure you show hidden files and drag the .htaccess file over too.

Your rating: None Average: 1.6 (28 votes)

Comments

Some times the most obvious

Some times the most obvious thing isn't so....

“...I installed Drupal by dragging all the files and folders over to my server, but since the .htaccess file starts with a period, OS X hides it. This means that the .htaccess file was never moved over.”...

Thanks very much for your post

Thanks for a solution how to

Thanks for a solution how to clean urls in Drupal website!

Amazing! Have a nice day!

THanks ....

Thank. When i just Checked that Whethr i have ".htaccess" file in te root folder It was present BU the SIZE showed "0B".

Then i just took a chance and TRIED TO REPLACE the .htaccess file with the One From my local files....

and it Just Worked...

I tried to copy the

I tried to copy the .htaccess, but still there is a problem in the internal pages. Please check this http://gator1139.hostgator.com/~sosmusic/ as the website and http://gator1139.hostgator.com/~sosmusic/organizers as an internal page.

Any idea?
Abeer

Wow, hard lesson learned

I wasted a lot of time before realizing i stupidly didn't copy over hidden files.

Thanks!
Josh

Coolest Drupal Site Guy on the Planet

I recently moved a drupal site from Media Temple to Hostgator including the htaccess files, the new site's index page was ok but all other pages resulted in a 404. I had already backed up the default htaccess file that was created by Hostgator and used that instead - and voila all seemed to be OK - I am thinking of changing my coolest guy on the planet web site from WordPress to Drupal, is it a steep learning curve?