The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need a little help with .htaccess
Greetings all,
I have a webserver up, and have been digging into .htaccess trying to get it as secure as I can get it. Just a couple of questions if anyone has time to help me out. First, is it possible to have more than one rewrite rule to prevent remote linking? For example, I'd like to prevent linking from mydomain.com globally, in every folder but one. I use mydomain.com/links to post up linked images/files/etc, and if possible I'd like to be able to keep that open and just use the rewrite to prevent remote linking in every other folder. Secondly, I have a couple of domains forwarded to my main domain. The way my host is setup, if you go to domain1.com or domain2.com, they both forward to mydomain.com, but under my current setup the address bar in the browser maintains the URL of the original link. (For a real example, go to extendedrangeguitar.com and you'll end up at sevenstring.org, but the browser maintains erg.com). Thirdly, I read up on creating an .htpasswd file and did the following: - Changed directories to a secure location outside of my web tree (we'll call it /home/vborg/) - Ran htpasswd -c .htpasswd Username - Put in my password Now, I believe all I need to do is add this in my .htpasswd where I want my pw-protected folders to be: Code:
AuthUserFile /home/vborg/.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require user Username Thanks in advance for any insight. - Chris Figured this out. GroupFile was killing me, stripped it and all is well. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|