Summary of Windows Create. htaccess file method

Source: Internet
Author: User


Many ways to create:

1, the use of DOS commands, in DOS There are three ways to choose:

Use screen Editing command copy con. htaccess, enter the content, and finally press Ctrl+z end Edit, the successful generation. htaccess;
Using the rename command ren 1.txt. htaccess, this is the most common method, in Windows window can not be executed under the command, under CMD but Luliping;
Use the redirect command echo. >.htaccess, a carriage return is entered into the. htaccess, which also creates success;

2, with the WinRAR file Manager

First create a new document, then open the WinRAR main interface, navigate to the file, you can directly rename, which I extracted a foreign open source project, its own. htaccess actually can be extracted correctly, the inspiration, of course, you use the 7zip Manager is also possible

3, directly through the text editing tools to save, such as Notepad, UltraEdit, etc., but save the time to select all the files can be

4, use the file creation method in PHP, fopen,file_put_contents file name directly take. htaccess.

5, the simplest way: To find a Linux server, with FTP software upload a TXT file, and then renamed on the server above. Htaccess, this method is the simplest, hehe.

6. Open Windows Notepad---"File-> Save as"---Select the all file type in the Save as type Drop-down menu that you saved as---Enter in file name. htaccess---Save

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.