Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
help password protect folder with htaccess on addon domain
Old 03-27-2009, 12:03 AM help password protect folder with htaccess on addon domain
Junior Talker

Posts: 1
Trades: 0
im trying to password protect my admin dir on an addon domain.

main domain: www.main.co.uk
addon domain: www.addon.com

public_html/ <-- (main domain)
public_html/addon.com <-folder for (addon domain)

i made a .htacces file in the admin dir of the addon domain.

Code:

AuthUserFile /pass/public_html/addon.com/.passfile
AuthName "Private Area"
AuthType Basic
require valid-user


when upload the above .htaccess file adn try to access my admin dire i get the following error.

Not Found

The page you were looking for appears to have been moved, deleted or does not exist.

This is most likely due to:

* An outdated link on another site
* A typo in the address / URL


on the root of the addon.com folder there's a .htaccess file with the following.

Code:
Options -MultiViews +FollowSymlinks -Indexes

<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
# If your server is running PHP in CGI mode you will probably need to uncomment the following lines
# Only uncomment lines that begine with Rewrite

# The RewriteBase should be set to the same value as the AppPath setting in your config.php WITH a / on the end
# RewriteBase /

# This rewrite base rule is only required if you are getting 401 unauthorized errors when placing an order with Google Checkout
# RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>


thanks in advance
esoteric is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to help password protect folder with htaccess on addon domain
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08534 seconds with 12 queries