Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Create. Htaccess File and Upload to Server

Don’t you know how to create .htaccess file and upload to server? If you are looking forward to doing the same, you have got your gold mine. I am going to walk you through the entire process of creating and uploading .Htaccess File to your server.

It allows you to bypass most of your server constraints that your hosting provider compels on you. By creating a proper .htaccess file and uploading the same into the right directory through a file manager or FTP software, you will be able to control and get a lot of features that usually you are not supposed to.

So are you ready to find out how you can create .htaccess file and upload to server? Here we go.

Create. Htaccess File and Upload to Server

Before you get to know how the creation and uploading of .htaccess file to your server is done, I would like to invite your attention to the importance of the same.

What is .htaccess file?

In simple terms, .htaccess is a server- level configuration file using which you can set up URL redirection, URL shortening or things like that. You know that your website’s location includes a lot of directories, sub directories and files. There is nothing wrong in having more than one .htaccess file for your website but they should be placed in different directories. Only one .htaccess file is sufficient for a single directory.

As I said earlier, it used to overcome the server limitations that were imposed by your hosting provider.

Are you ready to find out how you can create .htaccess file and upload to server? Here is it coming!

How to create .htaccess file and upload to server?

Follow the steps I have listed out below to proceed with the process of .htaccess file creation and downloading.

Step 1: Open a text editor and paste the following code into it.

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

# END WordPress

Step 2: Save the file as .txt.

Step 3: Open your website’s file manager or FTP utility and upload the file to the right directory. Then, you can rename the file to .htaccess. That’s all. You have done it.

For your information, you can use .htaccess file to redirect error pages to custom made pages.

  • 400 – Bad request
  • 401 – Authorization Required
  • 403 – Forbidden
  • 404 – File Not Found
  • 500 – Internal Server Error

I hope you have found this tutorial useful.

The post Create. Htaccess File and Upload to Server appeared first on Crack Aloud.



This post first appeared on Crack Aloud - Useful Tips, Tricks And Tutorials, please read the originial post: here

Share the post

Create. Htaccess File and Upload to Server

×

Subscribe to Crack Aloud - Useful Tips, Tricks And Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×