PDA

View Full Version : Drupal's htaccess file


finsandfur
05-23-2008, 07:39 PM
Ok....Drupal newbie here :teehee

What's with the .htaccess file being hidden? I can see it in any clients Control Panel with all my other CMS's except Drupal.

Mark, the other day you said you added an .htaccess file on one of my Drupal test domains for me, which did enable the clean url option, but I still can't see it no where. :dunno

I'm in the process of setting up another Drupal account , and I thought to myself, well, I'll just create the htaccess file like Mark did since I have no clean url option and I'm not seeing the file in the control panel.
It told me the file already existed? :hmmm

After a lot of research, I'm reading:crossed that Drupal's htaccess file is hidden. What's the trick to unhide it?

OS-Mark
05-24-2008, 11:15 AM
strange, sometimes the .htaccess is hidden when browsing windows folders, or some FTP software will hide the .htaccess but I am not aware of anything you can put in the .htaccess to make it hidden.

try this, go to drupal CVS and grab the .htaccess code.

http://cvs.drupal.org/viewvc.py/drupal/drupal/.htaccess?view=markup

copy it into a new file called .htaccess on your desktop and upload. overwriting the original .htaccess that Cpanel built.

If that doesnt work check the docs for your FTP software and see if you can enable hidden files. What FTP software are you using?

finsandfur
05-24-2008, 06:27 PM
I kinda did that but in a different way:teehee
I grabbed the one you put on a test domain for me, and used it on a new Drupal clients domain and it did work.

I can't figure out why Drupal 6.X can't find or recognize the .htaccess file to allow clean urls, now that we know it's there, unless it's written over first.


I'm using 3D FTP but I can see the file when entering with that.
I can't see it in the clients Cpanel...but only on the Drupal sites.

I'll enter via their Cpanels quite a bit because I'm building their sites for them and I need to access MySQL etc.

OS-Mark
05-26-2008, 10:03 AM
Are these being installed via fantastico?

I'm guessing the default .htaccess that is created by Cpanel may be the cause of the issue.

finsandfur
05-26-2008, 11:53 AM
No, I'm installing the CMS's manually.

That's an idea...I'll watch for an htaccess file in the next CpanelŽ I create.