was successfully added to your cart.

Create .htaccess file in WordPress

By August 3, 2015 Our Blog No Comments

.htaccess file is an important system file of WordPress platform. You can do many things using .htaccess file. You can use .htaccess to redirect users, enable or disable safety features, change the behavior of handling search engine bots, and add write/re-write rules for URL redirections. WordPress .htaccess file can be edited by using plugins or by directly access to your server File Manager.

The dot before the file name indicates that it is a hidden file. When you are accessing your web server through FTP, you will not be able to see .htaccess file unless your FTP client is forced to show hidden files. Simply, use any free FTP client like FileZilla and login to your hosting FTP account and browse to root of your installation. FileZilla -> Server -> Force showing hidden files.

Sometimes even when you have forced your FTP client to show hidden files, it will still not show you .htaccess file. The most common reason for this is that your WordPress site has not generated a .htaccess file yet. WordPress generates .htaccess file for the first time when you set up permalinks on Settings » Permalinks screen. All you need to do is to click on Save Changes button on the permalinks screen and WordPress will generate a .htaccess file in your site’s root directory.

permalinksettings1

[code] # BEGIN WordPress
RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] # END WordPress
[/code]

Leave a Reply

Click to Get Full Access to our entire collection for only $69! Get Access Today