What htaccess file in wordpress?

What are the roles of htaccess file in wordpress and how we can edit the file?

Team Leader Asked on January 25, 2017 in WORDPRESS.
Add Comment
1 Answer(s)

.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.

Team Leader Answered on March 19, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.