How to hide file name using htaccess? Print

  • hide file, mask file, hide file name, name rewrite, rewrite
  • 0

You can mask / hide a filename from public & bot access or from hackers. All you have to do is use following code in your .htaccess & replace your file name data with it:
<pre>

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /
RewriteRule ^data/sss.html /template/mytemplate/css/ss.css [L,QSA]

</IfModule>
</pre>
In this article, we are hiding  /template/mytemplate/css/ss.css & website is showing data/sss.html instead, they can still be able to see css data but not other files or structure details. 


Was this answer helpful?

« Back

Powered by WHMCompleteSolution