What htaccess file in wordpress?
What are the roles of htaccess file in wordpress and how we can editĀ the file?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and shareā ātheir programming āknowledge and build their careers.
.htaccess file is a server configuration file which tells your server how to handle certain things on your website.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Edit WordPress .htaccess file
From the cPanel:
First, log in to your cPanel. Click on āFile Managerā under the āFilesā section.Depending on your WordPress installation directory, you will find .htaccess at the root of your WP installation. If you donāt see it,enable “Show Hidden Files (dotfiles)” under setting.Finally edit and save the file.
Using FTP:
Download your .htaccess file from root directory and start editing and simply re-upload it back.