Thread
:
.htaccess disable direct access to a directory.
View Single Post
02-08-2012, 05:35 AM
PM User
|
#
2
abduraooft
Supreme Master coder!
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
Code:
RewriteCond %{REQUEST_URI} ^/view/(.)*$ RewriteRule ^(.*)$ noaccess.php[L]
The rules written on htaccess do not affect access to a file via PHP code.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --
(Dr. APJ. Abdul Kalam)
101 ways to post unanswerable questions in CF
!
SPREAD - the global community of drilling, completion & subsea professionals
abduraooft
View Public Profile
Find More Posts by abduraooft