How to add .htaccess file for my wordpress websites?

Hello,

.Htaccess file is not only associated with WordPress, but any Apache webhosting offers .htaccess file feature. When you install WordPress, in most of the cases it comes by default but stay in hidden mode at the root of your WordPress installation. Some time, .htaccess file is not present, and you have to manually create .htaccess file in WordPress. We can use a normal text editor to update or remove the content of our Wp blog .htaccess file. This is default code for your WordPress htaccess file:

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

# END WordPress
 
Back
Top