Results 1 to 11 of 11

Cant access subfolder in the forums dir has .htaccess of its own

This is a discussion on Cant access subfolder in the forums dir has .htaccess of its own within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi I have a folder in my forums directory with an .htaccess file in it which asks for password, AuthType.. ...

  1. #1
    drp
    drp is offline
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Liked
    0 times

    Cant access subfolder in the forums dir has .htaccess of its own

    Hi
    I have a folder in my forums directory with an .htaccess file in it which asks for password, AuthType..
    When I try to access the folder www.site.com/thefolder it redirects me back to www.site.com

    I tried adding RewriteEnginge off to the subfolder aswell as a new conditional to vbseo's htaccess RewriteCond %{REQUEST_FILENAME} !thefolder
    Yet nothing helps.

    Thanks.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Strange, because I have password protection using .htaccess on my admincp directory (which is under my forums directory) and I can access it fine (after entering the userid/password).

  3. #3
    Kee
    Kee is offline
    Junior Member
    Join Date
    Aug 2005
    Posts
    3
    Liked
    0 times
    If we remove the .htaccess file it works fine

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hi drp,

    please try to set "File not found" handler in your vbseocp to "Send 404 HTTP code" (I guess you have it set to "Redirect to homepage" now)
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    drp
    drp is offline
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Liked
    0 times
    Now it says Page not found

  6. #6
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    I have mine set to redirect to the forum home for File Not Found also.

    Here's the contents of the .htaccess in my AdminCP directory, if it'll help:

    Code:
    AuthUserFile /usr/www/users/myusername/forums/admincp/.passwd
    AuthName     "Protected"
    AuthType     Basic
    <Limit GET POST PUT>
    require valid-user
    </Limit>
    <Files .passwd>
    deny from all
    </Files>

  7. #7
    drp
    drp is offline
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Liked
    0 times
    This is mine:

    Code:
    RewriteEngine Off
    
    AuthType Basic
    AuthName "protected area"
    AuthUserFile "/home/myuser/.htpasswds/thefolder/passwd"
    require valid-user
    
    deny from env=_bad_referer
    deny from env=_bad_agent

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please check your webserver configuration (httpd.conf): it is possible that you have an "ErrorDocument 401 /path/to/document" directive in it AND the file it refers to ("/path/to/document") does not exists.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Ah yes, good point. I do have a valid 401 redirect set in my config.

  10. #10
    drp
    drp is offline
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Liked
    0 times
    Yes!! That was it!
    Thanks!

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Ok, great
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Add "www." in .htaccess
    By Jason|Xoxide in forum Custom Rewrite Rules
    Replies: 8
    Last Post: 03-31-2006, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •