.htaccess file
The .htaccess file is to redirect access
to other URLs and to install error handlers.
You find here a description with some examples
Your websites grows and sometimes You want to reorganise
the structure. For example I had a file
MY_SITE/pege/fuel.htm with the fuel statistic and
MY_SITE/pege/nomad.htm with my motorhome project.
Later I put also the fuel statistic of my old car into
the internet as http://pege.org/pege/fuel1.htm
And later, I felt the wish to reorganise this old directory
structure. But all search engines know the position of my old
files and nobody knows the new position.
This is the reason to create a file named .htaccess
in the root directory. Please type the name like it is here
with the point in front.
RedirectPermanent /pege/fuel.htm http://www.pege.orgfuel/jumper1.htm
RedirectPermanent /pege/fuel1.htm http://www.pege.org/fuel/renault.htm
RedirectPermanent /pege/nomad.htm http://www.pege.org/nomad/index.htm
errordocument 404 /404.htm
Yes, I put this 2 files in an own directory named fuel.
Yes, if somebody searches a not existing file, he will see the document 404.htm.
|