Recently, we advised one of our subscribers to delete the “..htaccess Of his website to resolve a common WordPress error.
The latter could not find the file "..htaccess And thought there was something wrong with his website. For beginners, this kind of operation is very confusing.
In this tutorial, we will show why the file..htaccess of your WordPress website is invisible, how to view it or create a new one if needed.
If you've never created a WordPress website, find out How to install a WordPress blog with an FTP client
What is the .htaccess file?
The file " ..htaccess Is a server configuration file that tells the server how to handle certain things on your website. Like how to redirect users, passwords to protect the administration areaOr protect some directoriesEtc. ...
The dot before the file name indicates that it is a hidden file. When you access your web server via an FTP clientYou will not be able to see the .htaccess file unless your FTP client is forced to show hidden files.
Sometimes, even if you force your FTP client to show hidden files, it may not always show your .htaccess file.
Why you can not find the .htaccess file?
The most common reason is that your WordPress website hasn't generated the .htaccess file yet. WordPress generates an .htaccess file for the first time when you configure the permalinks on the fact Settings »Permalinks. All you need to do is click on Save Changes on the permalinks screen and WordPress will generate an .htaccess file in the root of your website.
Very rarely, WordPress will not be able to generate an .htaccess file for your website due to file permissions issues. In this case, WordPress will show you a notice at the bottom of the page. Settings »Permalink, informing you that the .htaccess file can not be created.
If you have configured the permalinks of the configurations to be used other than the default ones, then WordPress will offer you the code that you must paste into your .htaccess file.
You will need to copy and paste this code into a text editor like Notepad (Use notepad + +). After that you need to save it as .htaccess file on your desktop. Then, connect to your website using an FTP client and upload the .htaccess file from your desktop to your server.
If you have an error while downloading the file, you need to change the file permission for your root directory. Suppose all your WordPress files reside under
That makes your file
public_html" the root of your directory. You have to go back to the parent folder and right click on the folder
public_html. Select the option " Right to access files« , which will open a file permissions dialog. You must enter 755 in the File Authorization dialog box, and then try to upload your .htaccess file to the public_html folder again.
Do not hesitate to protect yourself against accidents by discovering How to save your blog with Jetpack?
Here ! you now know how to find the .htaccess file of your blog or WordPress website. But before you leave, we advise you:
Some themes and WordPress plugins to use on your next website creation projects.
Concern is a fairly robust WordPress theme in creating any website. It's a WordPress theme neatly designed for showcase your content. Its perfect layout and its various functionalities allow it to create any website.
It is based on Bootstrap and its code is clean, well annotated, well commented, and easily modifiable to meet the needs of developers. Its control panel has an intuitive options section and a very user-friendly layout. In terms of personalization, its layout is the best in this niche; why he integrates free of charge Visual Composer plugins.
Among its features are: Contact form, its compatibility with several browsers and a typography that will give your website a professional look.
2. WPBakery Page Builder for WordPress
Have you ever noticed how much time you waste manually coding layouts? No more trials and no more mistakes with shortcodes or CSS! Now you have everything you need to create anything and for any page. Yes, WPBakery Page Builder works with all WordPress themes!
Say hello to the most popular WordPress page builder plugin! WPBakery Page Builder is easy to use with drag and drop support on its visual page builder, which will help you create any layout you can imagine. Access the Frontend editor (Inline editor) or Backend at any time. Yes, WPBakery Page Builder comes with 2 types of editors, which allows you to choose your preferred environment.
In addition, WPBakery Page Builder gives you full control over the responsiveness of your layouts. Automatically create responsive websites or adjust the preferences you need to make sure your WordPress website is perfect on mobile or tablet.
YellowPencil is a CSS style editor WordPress plugin that allows you to customize your website in real time. This plugin allows you to customize any page and theme without coding. Click on an item and start visual editing. Adjust colors, fonts, sizes, positions, and more. Take full control of your website creation with over 60 style attributes.
YellowPencil provides everything you need to customize the design of your website. The plugin comes with advanced features like automatic resizing, drag-and-drop support, and support for customizing google fonts, and color palettes.It works seamlessly with almost any WordPress theme and plugins.
This plugin generates CSS codes as a professional web developer in the background while you are editing visually the web page. It does not modify any theme file, but it loads CSS codes dynamically generated on the website so you can make changes at any time.
Check out other recommended resources that will help you not only manage your blog better, but also better handle your .htaccesss file.
- How to permanently delete a WordPress website
- 5 htaccess tricks to improve the security of your WordPress blog
- Some htaccess tricks you probably do not know
Here is ! That's it for this tutorial and nWe hope it helped you find or generate an .htaccess file on your WordPress website. Do not hesitate to share with your friends on your favorite social networks.
But, in the meantime, tell us about your Comments and suggestions in the dedicated section.