当前URL隐藏admin文件夹
http://www.example.com/admin/data/img/gallery/myimages.jpg
http://www.example.com/admin/data/content/mycontents.html
所以
当前SCRIPTS /网页HTMLS /文件包含并显示在浏览器源代码
<img src="/admin/data/img/gallery/myimage.jpg">
<?php include("/admin/data/content/mycontents.html"); ?>
这是名为“admin”的文件夹中的“CMS系统”
我想要做的是隐藏每个脚本/ PHP/HTML输出到浏览器的管理文件夹。 所以没有任何机构可以看到或搜索引擎无法捕捉到这一领域(安全问题) 因此,当浏览器输出的内容或脚本会重写上面的网址这个
删除管理员
http://www.example.com/data/img/gallery/myimages.jpg
http://www.example.com/data/content/mycontents.html
内浏览器源代码
<img src="/data/img/gallery/myimage.jpg">
或 去除数据太
http://www.example.com/img/gallery/myimages.jpg
http://www.example.com/content/mycontents.html
请也有助于它必须www.example.com的工作,以及example.com
溶液经过htaccess以及mod_rewrite的 我没有获得的httpd.conf 此外,我不想要移动文件夹中的文件夹中有很多脚本,所以必须写很多。 还告诉我,我应该在哪里把它放在根目录或管理文件夹
谢谢
它无法正常工作..我将.htaccess放在根文件夹中,而不是网站无法正常工作www.example.com我必须放置index.php。比它也没有工作的网址是相同的,你可以帮助 – user616415