security - htaccess rewrite to secure folder path -
i have application in folder want keep hidden. instead want able access folder secret path, example:
current path: example.com/myfolder
change path myfolder.example.com
when visits example.com/myfolder want return page not found.
i want make new path accessible ip. have tried various methods having no success. suggestions/examples appreciated.
thanks in advance.
1st can use htaccess hide floder, put code inside of folder (the folder want hide), allow ip
order deny,allow deny allow 127.0.0.1 (your ip)
2nd use htaccess set password
authname "private zone" authtype basic authuserfile /pub/home/your_login/.htpasswd require valid-user .htpasswd (make anther file pw) username:your password
3rd www.example.com/myfolder->www.myfolder.example.com something.example.com sub domain
it become
public_html/all files , floder something/others files
read 1 http://www.htpasswdgenerator.com/apache/htaccess.html
Comments
Post a Comment