Page 1 of 1

Where is the htaccess.txt file?

Posted: Thu Aug 11, 2011 4:56 am
by amoritan
I can't find the htaccess.txt file in OpenCart 1.5.1

Where is it?

Re: Where is the htaccess.txt file?

Posted: Mon Aug 15, 2011 8:52 am
by lozzareeves
i would also like to know this please!

Re: Where is the htaccess.txt file?

Posted: Mon Aug 15, 2011 2:40 pm
by SapporoGuy
Sort of hidden.
I'm not using the main installer, I use SVN and then hand edit so ...

Normally, a htaccess file has a "." in front of it.
I come across this a lot and because I'm using OSX and open the files direct in my "sites" folder the htaccess file seems to be missing.

It is not missing, it is just doing it's job.

To find it, so to say, you can go to the terminal (OSX) and then just use the command:
cp .htaccess htaccess.txt
This will work on basically any *nix base system. (Sorry, I don't do windows but there should be a similar way or do something like show hidden files).

Basically, all I did/do is rename the file so that my system will show it to me.
Once you make changes you need to rename back so that the "." is front of the name.

The dot in front of the name basically tells your system that the file is special system file and that the system should not show it to the world (even you ;) ).

By removing or adding the dot in front is a way to start / stop the htaccess ability.

I hope this helps !

Re: Where is the htaccess.txt file?

Posted: Mon Aug 15, 2011 3:07 pm
by uksitebuilder
Actually, the .htaccess file is called .htaccess.txt in the original download and is in the upload folder.

see attached for 1.5.1

Rename it to .htaccess and edit to suit