Facebook - interesting facts
The social network Facebook has bypassed its competitors in all respects, and not only bypasses it, but also amazes them with its new products. Today, Facebook has more than 570…

Continue reading →

How to choose the best laptop
Buying a laptop is not an easy task, and you need to approach this issue no less seriously than purchasing any other equipment. As in the case of buying a…

Continue reading →

How to create a .htaccess file
If you have your own website, sooner or later you will have to face the creation of the .htaccess file. There are many descriptions of this file, various functions, and…

Continue reading →

How to create a .htaccess file

If you have your own website, sooner or later you will have to face the creation of the .htaccess file. There are many descriptions of this file, various functions, and everything that can be done with it on the network. But for some reason no one wants to tell how exactly to create it.

Error 500
Most often, when .htaccess is uploaded to the server or created there, visitors instead of the site see a 500 error. The problem is that the file must be in UNIX format. I’ll try novice users step by step to show how to create .htaccess
For work, we need Notepad ++ v4.7.5 notebook program. It is free, so download it (without any problems) from the official website of the developer and install it.

First, I wanted to create this file to direct visitors typing the address of a nonexistent or deleted page to the main page of my site. For example, you can type in the browser line http://www.wikispace.ru/ any phrase and you will still be taken to the main page. For this function to work in the .htaccess file, write

ErrorDocument 404 http://www.wikispace.ru
Where wikispace is the name of your site
Let’s go 🙂 We start the Notepad 4.7.5 program, at the top left, click on the _new file tab. In the program window, write

Rewriteengine on

RewriteBase /

ErrorDocument 404 http://www.wikispace.ru (change the site address to yours)

Next, go to the “encoding” tab with one click, convert to unix format

Visually, everything will remain the same. No more actions, just close the program and respond to the request for saving

In the window that appears, select the location to save, enter the name of the file necessarily (dot) htaccess
The file type is left All types (*. *)

Now such a file can be uploaded to the server, to the root folder (directory) of the site and all the lost visitors will be yours. To check, type the address of your resource in the browser, if the error is 500, it means that you did something wrong. Delete the file and repeat the procedure how to create .htaccess again, be more careful. If everything went smoothly, type the address of a non-existent page, you will have to get to the main page of the site. If you wish, you can prescribe deeper settings: password protection of directories, redirection to another address, PHP execution in HTML, etc., there are a lot of settings, and there are a lot of information on the network, just experiment with caution. And I wish you good luck in your endeavors.

How to take a screenshot? An integrated approach to solving the problem.
Many computer users probably faced the task when it was necessary to take a screenshot (“photos” of the screen). Often, for these purposes, special programs are used that have wide…

...

How to make a simple and free website on Wordpress without installing it on your hosting?
The topic of creating sites on the free CMS (Content management Systems) Wordpress has been repeatedly considered at Wikispace.ru. However, in this article I will tell for "dummies" in web…

...

The history of development and evolution of the keyboard.
We all use the keyboard every day, it is difficult to say whether there can be a more important and universal device for entering information into a computer than a…

...

What is the uniqueness of the text and how to check it?
You have probably already heard more than once that search engines especially appreciate unique texts, and therefore, when creating your website or any Internet project, you sincerely intend to fill…

...