Post by HTMLCSSNoob » Tue Aug 24, 2010 2:33 pm

Guys, I have been digging through my files and folders, and I can't find the .htaccess.txt file at all. I am trying both my FTP client and my File Manager on my cPanel, and I have it checked to show hidden files, and the htaccess.txt file is just not there.

Can anyone tell me where to find it? It's not in the root, and I can't find it in any folders/subfolders.

Thanks!

Active Member

Posts

Joined
Fri Aug 20, 2010 7:53 am

Post by cevarief » Tue Aug 24, 2010 2:41 pm

You can just extract the htaccess file to your opencart root folder from opencart zip file.

Active Member

Posts

Joined
Wed Jun 02, 2010 10:52 pm

Post by HTMLCSSNoob » Tue Aug 24, 2010 2:52 pm

cevarief wrote:You can just extract the htaccess file to your opencart root folder from opencart zip file.
I opened the zip file with two programs (i'm using mac) and the .htaccess.txt file is still nowhere to be found. Am I supposed to be looking in a specific file/folder. Although I've looked through all the files and folders in the opencart file and I still don't see the .htaccess.txt file.

Active Member

Posts

Joined
Fri Aug 20, 2010 7:53 am

Post by HTMLCSSNoob » Tue Aug 24, 2010 3:55 pm

Wow guys, that was difficult. I had to go around my a$$ to get to my elbow. I was able to figure it out though. I will post what I did below in case anyone runs into the same problem. Keep in mind I am using a Mac, and I am using the FTP client Cyberduck. I made sure that the option to show hidden files in Cyberduck was checked, but I still could not see the .htaccess.txt file, so I had to do the following steps below.

1.) Mac hides all files that begin with a "." so naturally if you are searching in finder, you will not see the .htaccess.txt file in the OpenCart Folder. You have to enable the finder to show hidden files first. So...

2.) Go to your terminal app, and then copy in the following code:

Code: Select all

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
now when you open finder you will be able to see all the hidden files.

3.) Navigate to your OpenCart install folder. You will see the .htaccess.txt file here. BUT, the file is shaded out. You can still view the contents of the file, but if you modify it then Mac will still consider it a hidden file and Cyberduck will not be able to see it nor will your cPanel file manager. So...

4.) Open the file with your text editor and then highlight and copy all the contents.

5.) Create a new text editor document, and paste all the contents into the new document.

6.) Now, save this new file as htaccess (not .htaccess). If you add the "." in front of the file now, then Mac OS X will treat it as a hidden file all over again. When you click on the save button, make sure you save it in UTF-8 and DON'T add a suffix like .txt. Basically the filename should just be htaccess.

7.) Now go into your FTP client or cPanel File Manager, and upload the new htaccess file.

8.) Once it's uploaded, rename it to include the "." so it should now be .htaccess.

That's pretty much it, now you will have the .htaccess file in your directory so you can start using SEO URLs.

Oh yeah, and you will probably want to turn off the hidden files in finder because it will get annoying to see all those hidden files forever, so to change it back to the way it was before, simply open terminal and copy in this code:

Code: Select all

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
I'm sure someone will look at all this and say "Oh my god there is such an easier way to do that!" but this is the solution that worked for me with the software and operating system that I am using. Feel free to add to this if you know of an easier way to accomplish the same thing.

Active Member

Posts

Joined
Fri Aug 20, 2010 7:53 am

Post by Johnathan » Wed Aug 25, 2010 12:14 am

This is exactly why I created this thread. I think having the htaccess file be invisible by default is not a smart thing for non-tech people.

I use a Mac as well, and the easiest way to get around this is to FTP the entire OpenCart zip file to your server, then use the cPanel file manager to unzip it. This way the htaccess file is unzipped with the rest of the files, and will be there when you need to rename it.

Hope this helps for the future!

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by HTMLCSSNoob » Thu Aug 26, 2010 2:18 am

Johnathan wrote:the easiest way to get around this is to FTP the entire OpenCart zip file to your server, then use the cPanel file manager to unzip it. This way the htaccess file is unzipped with the rest of the files, and will be there when you need to rename it.

Hope this helps for the future!
LOL, I knew there had to be an easier way. :bang:

Active Member

Posts

Joined
Fri Aug 20, 2010 7:53 am

Post by bStunt » Tue May 10, 2011 4:18 pm

I know this is old, but thanks for the info! lol...

Newbie

Posts

Joined
Thu Jun 03, 2010 8:07 am

Post by babykids » Thu Aug 18, 2011 8:07 pm

THANKS!!!! I've have been pulling my hair out trying to find this missing htaccess file on the MAC. Finally some sound advice. I thought I was going crazy. Will try your advice now

Newbie

Posts

Joined
Fri Jun 03, 2011 8:17 pm

Post by uksitebuilder » Thu Aug 18, 2011 8:14 pm

me thinks Daniel should rename the default file to just htaccess.txt (without the period)

Would solve a world of Hurt for all Apple munchers ;)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Johnathan » Thu Aug 18, 2011 9:45 pm

Agreed, but he won't do it -- you can see above, I tried a year ago and nothing ever changed. Daniel doesn't agree that "htaccess.txt" would be better, for whatever reason.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by vicky_vale_71 » Thu Jan 26, 2012 3:20 am

I thought I was going mad - I could see it in my c panel search bar, but It just wasn't there when I looked in the folder. Same in filezilla - Thanks noob from someone more noob than u
x

Newbie

Posts

Joined
Fri Jan 06, 2012 1:49 am

Post by victorj » Thu Jan 26, 2012 3:42 am

.htaccess is a serverside file used on apache servers.
if you remove the . it will not work.
it is in fact a file with no name ant the file extension is htaccess is is done so no one can accidentily access or download it.

htaccess is also very commonly used to protect directorys with a password, disallow certain ip numbers and o whole lot of more very interesting things.

if one wnats too know more

http://httpd.apache.org/docs/1.3/howto/htaccess.html

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland
Who is online

Users browsing this forum: No registered users and 14 guests