Are you having bother discovering the .htaccess record in WordPress? We’re incessantly requested by means of newbies ‘The place is my .htaccess record?’ and ‘Why I will not to find it on my WordPress website?’.

From time to time it’s possible you’ll wish to edit the .htaccess record or delete it to mend a common WordPress errors. On this article, we will be able to provide an explanation for why you’ll’t to find .htaccess record for your WordPress website, and how one can simply find it.

Finding the .htaccess file for your WordPress site

What’s .htaccess record?

The .htaccess record is a server configuration record which tells your server how one can maintain sure issues for your web site. Like how one can redirect customers, password protect admin area, or protect some directories, and many others.

It’s situated to your WordPress website’s root folder. WordPress makes use of it to control redirects and permalinks.

The .htaccess record is a surprisingly robust configuration record and can be utilized to do so much helpful issues. See our article at the most useful .htaccess tricks for WordPress for some examples.

Why I Can’t In finding .htaccess Record?

There are two not unusual causes for now not discovering the .htaccess record to your web site’s root folder. It’s both hidden by means of your record supervisor tool, or it doesn’t exist in any respect.

We can provide an explanation for either one of them with answers.

1. Your FTP Shopper is Now not Appearing Hidden Information

The dot prior to the htaccess record identify signifies that this can be a hidden record. By means of default, whilst you attach for your WordPress hosting server the use of an FTP shopper, it’ll now not display the hidden recordsdata.

To make hidden recordsdata visual, it is very important exchange your FTP shopper settings.

For instance, in FileZilla, you’ll to find the choice below ‘Server » Power appearing hidden recordsdata’ menu.

Show hidden files in FileZilla

If you’re the use of the Record Supervisor app in cPanel, then you are going to to find the method to display hidden recordsdata prior to launching the app.

Show hidden files in cPanel

For different FTP purchasers, you are going to to find the method to display hidden recordsdata in app settings or personal tastes menu.

After enabling this feature, you might have the ability to view all hidden recordsdata together with .htaccess record on your WordPress website.

2. The .htaccess Record Doesn’t Exist

The second one maximum not unusual reason why for lacking .htaccess record is that your WordPress website has now not generated it but.

WordPress mechanically generates .htaccess record as a result of it’s required to correctly redirect permalinks.

In case your .htaccess record is lacking, then the very first thing you wish to have to do is to consult with Settings » Permalinks web page and click on on ‘Save Adjustments’ button with out converting anything else.

Permalinks settings page

WordPress will now attempt to generate the .htaccess record for you.

On some uncommon instance, WordPress would possibly not have the ability to generate the .htaccess record because of record permissions factor.

If so, it’ll display you a message on the backside of the Settings » Permalinks web page, announcing that the ‘.htaccess record isn’t writeable’.

You’ll want wish to manually create the .htaccess record and upload the desired code within it.

htaccess file not writeable

Merely replica and paste this code in a textual content editor like Notepad. After that, you wish to have to reserve it as .htaccess record for your desktop.

Now attach for your web site the use of an FTP shopper and add the .htaccess record out of your desktop.

If you happen to get an error whilst importing the record, then you wish to have to change the file permission on your root listing.

Let’s think your entire WordPress recordsdata live below /house/johnsmith/public_html/ listing.

This makes public_html folder your root listing. You wish to have to visit its mother or father listing and proper click on at the public_html folder. Make a selection Record Permissions, which is able to open a record permissions conversation field.

Now input 755 into the record permission conversation field after which attempt to add your .htaccess record to the public_html folder.

Changing file permissions via FTP

We are hoping this newsletter helped you to find .htaccess record for your WordPress website. You might also wish to see our WordPress troubleshooting guide to discover ways to diagnose and attach WordPress problems all on your own.

If you happen to favored this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll additionally to find us on Twitter and Facebook.

The submit Why You Can’t Find .htaccess File on Your WordPress Site seemed first on WPBeginner.

WordPress Maintenance

[ continue ]