Where to find htaccess
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 11 years, 4 months ago.
Active 10 years, 7 months ago. Viewed 5k times. Improve this question. Where did you put it? Add a comment. Active Oldest Votes. Improve this answer. David Z David Z 5, 2 2 gold badges 23 23 silver badges 22 22 bronze badges. What a lame answer, he didn't ask for your opinion he asked where to find the stupid file.
And I did also answer the question as asked. Dennis Williamson Dennis Williamson Yeah, check your apache configuration file to find your document root. You create the file in each folder you want those settings to apply to.
Chris S Chris S I didn't realize I had to create one. Thanks — codedude. And what if there is no. What if there is one, but it's not in the directory the OP wants to apply directives to? Congratulations, now you know how to locate, and edit your. Did you find this guide helpful? He has been a Technical Writer for InMotion since Thanks for this useful answer.
But I still wonder why there are so many,. I hope that helps to provide some clarity on the issue. I have found several htaccess files throughout my web site. The site has gone through several formats over the past 8 years. To effectively utilize my forced https code insertion into a default htaccess file, where do I place it in the root? Is it then safe to delete all of the other htaccess files I find scattered throughout the site or are those issuing directives for plugins?
Of which I am not so sure does anything. Typically, you would put the. It is difficult to say if you need the other. Also, note that some sites won't have a. For example, when Joomla sites are first installed, they come with a sample htaccess.
That then needs to be renamed to. If you don't have cPanel in your hosting, please give your host's file manager a try or use FTP.
If you're on localhost, there's usually not a need to use your. I'd recommend waiting to use it until you move to your production server instead. Join today and get access to 1,'s of books and videos. Sign up today! Step 1.
0コメント