Results 1 to 13 of 13

Password Protected admincp + vBSEO = Forum Home

This is a discussion on Password Protected admincp + vBSEO = Forum Home within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hey guys, I have just password protected my adminCP directory and am finding that it wont even pop the prompt, ...

  1. #1
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times

    Password Protected admincp + vBSEO = Forum Home

    Hey guys,

    I have just password protected my adminCP directory and am finding that it wont even pop the prompt, rather it redirects me to the forum home.

    Quote Originally Posted by forumroot htaccess
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.nzboards\.com
    RewriteRule (.*) http://www.nzboards.com/forums/$1 [R=301,L]
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums)
    RewriteBase /forums
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $1 [L]

    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    Quote Originally Posted by admincp htaccess
    AuthType Basic

    AuthName "Administration Section"

    AuthUserFile "/home/***/.htpasswds/forums/admincp/passwd"


    require valid-user
    Any ideas?

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    This is what i have in my admincp .htaccess

    #require valid-user

    AuthType Basic

    AuthName "Gizli Bölge"

    AuthUserFile "/home/*****/.htpasswds/admincp/passwd"


    require valid-user
    Also i dont have my admincp rewritten.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

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

    please check your httpd.conf for the custom error handlers directives, like:
    Code:
    ErrorDocument 401 /path/to/file1.html
    ErrorDocument 403 /path/to/file2.html
    ErrorDocument 404 /path/to/file3.html
    and make sure that all files file1(2,3).html are existing at your server.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    I'm on Shared hosting.. don't think I have access to that.

    Or do I?

  5. #5
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    And I dont have any custom error pages defined in /.htaccess

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    I'm on Shared hosting.. don't think I have access to that.

    Or do I?
    It depends on the hosting platform, but in any case you can find this information out from your hosting support.
    The issue you reported is most likely related to this.

    And I dont have any custom error pages defined in /.htaccess
    Yes, it is usually defined in httpd.conf.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    Is there something "wrong" with using it in .htaccess as provided by cPanel?

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    .htaccess content is fine - you should not change it. Just make sure that all files configured for custom error handling are existing.
    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
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    Thing is, I don't think I have any. None defined in .htaccess, and I doubt my host would have slipped in some incorrect ones to httpd.conf.

    Waiting on confimration of this from him now.

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Ok, let me know what you get from your host.
    These directives (ErrorDocument) are correct, but you should just create the files specified.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    One more note, please try to add the following at the top of your .htaccess:
    Code:
    ErrorDocument 401 default
    ErrorDocument 403 default
     ErrorDocument 404 default
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #12
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    OK.. this is now happening with my "testvb" instance.

    I can't password protect it because if I do, I can't also turn off the vBSEO rewrites that are being passed down from the .htaccess in root (for my vBA portal).

    Here's that .htaccess (remembering it is in root - forums are in /forums and I want to NOT have vBSEO rewriting on /testvb) .. what do I need to add to make /testvb unaffected?

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} !^www\.nzboards\.com [NC]
    RewriteRule ^(.*) http://www.nzboards.com/$1 [L,R=301]
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums)
    RewriteBase /forums

    RewriteCond %{REQUEST_FILENAME} !upload/
    RewriteCond %{REQUEST_FILENAME} !forums/
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !forums/
    RewriteRule ^(.*.php)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please try to modify your .htaccess
    FIND:
    Code:
    RewriteCond %{REQUEST_FILENAME} !forums/
    ADD BELOW:
    Code:
    RewriteCond %{REQUEST_FILENAME} !testvb/
    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. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 10:29 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-09-2005, 12:00 AM

Posting Permissions

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