PDA

View Full Version : [ubuntu] .htaccess not showing up



Tehsimpl
September 24th, 2010, 04:57 AM
Hey, im am completely new to Ubuntu. I used to hate all linux operating systems, but I LOVE UBUNTU! Sorry for hating.

I am a PHP developer and I have a LAMP server installed on my Ubuntu 10 system.

How to I get my computer to show the .htaccess files? They do not show, they just disappear!

Am I missing something? Please help.

Thanks, Jacob Marshall
Ubuntu Newbie :D

lykeion
September 24th, 2010, 08:03 AM
If I understand your question correctly, you create a .htaccess file but then you cannot see it in the file browser.
Files with file names starting with a dot are by default hidden, try this:

View > Show Hidden Files (Ctrl+H)

If you work from a terminal you can list all files (incl. hidden files starting with a dot) with the --all switch like this:

ls -a

jbrice
September 24th, 2010, 08:17 AM
Glad to know that I wasn't the only one caught out by this. :)
Tho. I had been using Ubuntu for a while, I had been developing PHP on Windows on employer's PCs, and it took me way too long to realise that - for Linux - the .htaccess file is just another hidden "dot-something" config file.
So use whatever you normally do to hide/reveal config files - usually cntrl+H.

Tehsimpl
September 24th, 2010, 08:59 PM
Wow, thanks for this! How do you guys remember all these commands? All I can remember is to restart apache. Lol

Thanks for this.