General Topics

How To Create htaccess File WordPress?

Create htaccess File WordPress: If you want to see sample .htaccess file. Then I am sharing here. I hope after reading this post you will be able to edit .htaccess file and create. The file is a sensitive file so don’t enter or delete extra coding from the file. Before entering any type of coding in the .htaccess file. Copy all data and save on another location then add additional data in the file. If you are using WordPress and want to create a .htaccess file. Then you can create from CPanel and edit from WordPress dashboard by Yoast SEO plugin. How to access the .htaccess file?

Way To Create htaccess File WordPress

  • Login your CPanel account and you will see like as shown below. Now find File Manager.

File Manager CPanel

  • Now click on the public_html folder.

Public HTML folder

  • Click on New File icon like shown below and write the name “.htaccess”. Hit create a new file.Create New File in File Manager
  • Save this code in the file which you have create
# 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]
# END WordPress

I hope this tutorial has helped you to how to create a new file in CPanel root directory. If you want to read about how to create a redirect using CPanel then read here about it by click on the link How To Setup 301 Redirect .htaccess WordPress? This is the file of WordPress which you use to rid off different issues like if you want to create redirect then this file will help you. If you want to secure your website then the file will also help to make secure.

This is the default .htaccess file. Don’t forget to subscribe for latest posts. Just enter your email Id and you will get a notification when any post publish. You will like also WordPress Plugins For SEO Optimization.

Lastly, you have read about the way in which you can create htaccess file WordPress. If you like this then follow us on Twitter.

Supporting Articles

How To Optimize Images For Web Without Losing Quality

Payments Are Currently On Hold By Google AdSense?

Succeed With CPanel Fix File Permissions In 10 Minutes

Tagged With
Show More

Global Blurb Team

"Global Blurb since 2015" Global Blurb providing information about SEO, Beauty, Health & Fitness, Interior designing, Fashion and ways of earning online without investing a penny. The blog designed to share ideas about different topics.

Want to contribute

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button