Rhizardhy TutoriaL

;

Tag: windows

Build .htaccess in Windows and Linux Server

by aredie on Jun.20, 2009, under General

htaccess image

htaccess image

. htaccess (dot letters, followed by the letter string “htaccess”) is a file that can contain commands for the Apache webserver. Put in a directory under the document root and website will commands that will be in effect on the files and sub directories under that directory.

With. Htaccess we can protect a directory, change the display options by Apache directory, and change the extension handler associations, etc.. Basically, almost everything that customization can be done by Apache, we can apply at. Htaccess is. File. Htaccess is the extension of the Apache configuration file that can be spread in each directory you want.
Build. htaccess in Windows
In Windows, you may be experiencing a little difficulty in building this file, as the Explorer does not allow the file name that begins with the characters point. As a solution, there are a few options.
  • You can first try to make an empty file named “.Htaccess” using DOS Prompt, the way open DOS Prompt and then type : copy nul .htaccess. And then, you can edit it using Notepad or another editor.
  • Open Notepad, type the desired content, and save. Type “. Htaccess” with no quotes and the file type is set to All files. Click Save / OK.
  • You can also use another editor such as EditPlus, which allows the file name that begins with the characters point.
Build. htaccess on linux server
On the Linux server (eg using SSH to the server) does not have a problem in the making of this file. Simply use your favorite editor as usual to create another file.
1 Comment :, , more...