.htaccess that you must type a file name when renaming how to solve

In the previous article mentioned in the "current data, uploads have permission to execute .php, very dangerous, you need to cancel execute permissions to the directory immediately!" When you can solve folder as ".htaccess" file by creating a name.
But at the time of creation found to rename Notepad time, Notepad will prompt "must type a file name." In the end how to do it? He said under the following solution:
Method One:
1. Create a new text file, renamed "a.htaccess"
2, create a new text file, copy the following content, save it as "b.bat" file

@ren "%~f1" .*

The "a.htaccess" b.bat file onto the icon, the file name can be removed leaving only the suffix, "a.htaccess" becomes a ".htaccess".


Method Two:
Start - Run - type cmd, cmd window open
cmd window path at this time is C: \ Documents and Settings \ username >
, type the following (not including the information in parentheses):
Copy CON .htaccess (Enter)
(press Ctrl + Z Enter)
screen prompts as follows:
C: \ documents and Settings \ ADMIN> copy CON .htaccess
^ the Z-
replicated a file.
At this point back to the desktop, double-click on My Computer and enter C: \ Documents and Settings \ username
you can see the file you want to ".htaccess"

 

Reproduced in: https: //my.oschina.net/garyun/blog/602768

Guess you like

Origin blog.csdn.net/weixin_34115824/article/details/91774705