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!
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!
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.cevarief wrote:You can just extract the htaccess file to your opencart root folder from opencart zip file.
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:
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:
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.
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
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
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!
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!
LOL, I knew there had to be an easier way.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!

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
Would solve a world of Hurt for all Apple munchers

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
x
.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
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
Who is online
Users browsing this forum: Google [Bot] and 13 guests