![]() |
help :(
Hey guys, i'm trying to use htaccess to both password protect a directory, and allow certain domains to access the directory also, does anyone know how I can do both?
|
What I did was add my .htaccess and .htpasswd files as normal to setup the protection. As far as allowing dominas, I had my server techs change my HTTP-Config file. I didn't want to mess with this myself. There was no solution that i saw to make the .htaccess handle this. The Http-Config works like a charm ;^)
|
|
I tried the Allow Deny Hyper with no luck.
I think that is for something else. Or I am missunderstanding the question. I beleive they want to allow their members area from one domain to access the content on the other. Allow/Deny would not work in this case. But I am no expert. Just went through it recently. :) |
mod_rewrite is your friend
|
Thx porndaddy, it sounds like you're on the right track. Though my server admin has no idea how to edit httpd to allow domains. Can you give me any more info on how this is done with http config?
|
Quote:
Oh, and is all the content on one server or are you accessing content/members areas on other servers? |
Quote:
|
Quote:
|
AuthType Basic
AuthName "Members Area" AuthUserFile /usr/www/domain.com/nowebaccess/.htpasswd require valid-user Order deny,allow Deny from all allow from xxx.xxx.xxx.xxx allow from domain.com Satisfy any DynaMite :thumbsup |
You´re welcome
DynaMite |
Quote:
|
That doesnt work dynamite, im way past that
|
Quote:
AllowOverride All if not check your server error log to see if you have used the right IP referrer. I´m using this and it works very fine. DynaMite |
Quote:
Paste it here and remove all data relevant to your machine and I´ll tell you what´s wrong. This method works perfect I use it a lot DynaMite |
/home/sites/mysite/members/.htaccess: AllowOverride not allowed here
|
ok change Options to: Options All -Indexes
You can also put that line on top of your .htaccess file Options All -Indexes DynaMite |
| All times are GMT -7. The time now is 09:18 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123