The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do I Deny Access for Certain Directory?
For example I wanted to deny all access to my /downloads area.
So say when a person enter: www.samplesite/downloads they be redirect back to the mainpage or hidden so they wouldn't even know it's existed. Please do not advise to put on a password access page as I want to keep this directory hidden/non-existed from all members and guests. I pretty sure this can be done.. maybe a little tweak in httaccess.. anyways please provided the codes or easy direction on to accomplish this. Thanks all. |
#2
|
||||
|
||||
You could set up a redirect in htaccess but no one would be able to access the directory including you... if that is the case it's better you don't even have the directory to begin with or if it's for backup files or such just move it 1 level above your public_html directory so it isn't accessibly by http at all.
|
#3
|
||||
|
||||
Thanks BOP5,
I'm interest in the htaccess redirection, please provided the codes to be used |
#4
|
||||
|
||||
I believe your .htaccess file should look like this:
Code:
RewriteEngine on Redirect 301 /downloads/ http://www.example.com/somewhere_else/ |
#5
|
||||
|
||||
Quote:
An extra question.. I'd also like to know how to redirect for certain .php page, for example when someone type: www.yoursites.com/arcade.php ~~> I'd like it to redirect back to the hompage. |
#6
|
||||
|
||||
Assuming you already have the line "RewriteEngine on" from the above, add this line:
Code:
redirect 301 /arcade.php http://www.example.com/index.php |
#7
|
||||
|
||||
Works like miracle.. I can't thank you enough!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|