November 26, 2019 at 10:14 am #81158LaluyeParticipant@laluye-tadanyigbe
There are lots of reasons why you would want to access .htaccess: for URL (Uniform Resource Locator) redirecting or rewriting, enabling password protection, defining custom error pages, allowing or denying users, or changing URL’s or timezones. Whatever the reason, you must first know where to find it on your host server.
Hold up, nerd! What is .htaccess? Simply put .htaccess (Hypertext Access) is a file that is used by web servers to apply settings by directories (folders).
To begin, Access your cPanel. Just type the domain (e.g. http://www.ficticiousdomain.com) name of your website and append to the end of it /cPanel. This means the address bar on your browser should look something like this:
Then, you have to fill in the credentials (username and password) to access the cPanel.
Next, find your apache configuration file. All you need to do is to go to File Manager, then Public.html. You may run into a dilemma when you do not find anything that looks like a .htaccess file and think this guide is probably a sham. Well, hold your tacos! The problem is probably because of the default setting that keeps hidden files, well, hidden.
To fix that, just go to settings located at the top, right-hand corner, and you will see a checkbox show hidden files. Ensure that it is checked and save. The hidden files with a dot (.) prefixing them will appear listed, including .htaccess.
You can now do whatever you intend to do with the .htaccess file.
If you would like a more detailed breakdown of .htaccess, check out this article.
You must be logged in to reply to this topic.