Results 1 to 10 of 10

Non Vbseo password protected Admin

This is a discussion on Non Vbseo password protected Admin within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi, I recently installed VBseo on a site and now have problems accessing the admin section of a separate script. ...

  1. #1
    Junior Member
    Real Name
    thecat
    Join Date
    Sep 2006
    Posts
    9
    Liked
    0 times

    Non Vbseo password protected Admin

    Hi,

    I recently installed VBseo on a site and now have problems accessing the admin section of a separate script.

    The non Vbseo admin is located in the cgi-bin..

    sitename.com/cgi-bin/dir/admin/admin.cgi

    the /cgi-bin/dir/admin/ directory is protected by a htaccess and htpasswd file located at /public_html/cgi-bin/dir/admin/.htaccess


    The VBseo htaccess file blocks access to this admin directory.

    "page not found" message


    this is the section which effects access

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


    Could you please help with a fix for this problem.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Try adding this to the .htaccess in your cgi-bin directory:

    RewriteEngine Off

  3. #3
    Junior Member
    Real Name
    thecat
    Join Date
    Sep 2006
    Posts
    9
    Liked
    0 times
    Hi,

    Sorry but it still blocks access.

    RewriteEngine Off has no effect.

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Sorry, I meant to add it in this one:

    /public_html/cgi-bin/dir/admin/.htaccess

    Is that where you added it?

  5. #5
    Junior Member
    Real Name
    thecat
    Join Date
    Sep 2006
    Posts
    9
    Liked
    0 times
    Yes that is where I added it

    /public_html/cgi-bin/dir/admin/.htaccess

    currently the above htaccess code is...

    AuthUserFile /home/accname/public_html/cgi-bin/dir/admin/.htpasswd
    AuthGroupFile /dev/null
    AuthType Basic
    AuthName Protected
    require valid-user

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

    please check your apache configuration (httpd.conf) for Custom Error handlers definitions like:
    Code:
    ErrorDocument 401 401.html
    ErrorDocument 403 403.html
    ErrorDocument 404 404.html
    and make sure that 401-404.html files are existing in your public_html folder (file names may be different) - you can create empty files if you don't have them.
    Last edited by Oleg Ignatiuk; 02-24-2007 at 06:30 AM.
    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
    Junior Member
    Real Name
    thecat
    Join Date
    Sep 2006
    Posts
    9
    Liked
    0 times
    Hi Oleg,

    The ErrorDocuments do exist, I did not bother to check but it seems they also do not work since the VBseo install.

    The problem is that I run two scripts which have conflicting htaccess code.

    Below is the modified Vbseo htaccess file. I had to combine my old code with the VBseo code for the site to work. (duplicate content issues with the non VBseo script)

    If I remove the Vbseo htaccess code, I can access the non Vbseo admin directory and the error docs work, but then vbseo does not work :(

    vbulletin index.php is changed to forum.php



    # 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} ^sitename\.com [NC]
    RewriteRule ^(.*)$ http://www.sitename.com/$1 [L,R=301]

    RewriteRule ^.*N([0-9]+)/?$ /ads/Detailed/$1.html [L]
    RewriteRule ^.*L([0-9]+)/?$ /Detailed/$1.html [L]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
    RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.htm\ HTTP/
    RewriteRule ^(.*)index\.htm$ /$1 [R=301,L]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
    RewriteRule ^(.*)index\.html$ /$1 [R=301,L]

    ErrorDocument 400 /httperror.php?e=400
    ErrorDocument 401 /httperror.php?e=401
    ErrorDocument 403 /httperror.php?e=403
    ErrorDocument 404 /httperror.php?e=404
    ErrorDocument 405 /httperror.php?e=405
    ErrorDocument 406 /httperror.php?e=406
    ErrorDocument 407 /httperror.php?e=407
    ErrorDocument 408 /httperror.php?e=408
    ErrorDocument 409 /httperror.php?e=409
    ErrorDocument 410 /httperror.php?e=410
    ErrorDocument 411 /httperror.php?e=411
    ErrorDocument 412 /httperror.php?e=412
    ErrorDocument 413 /httperror.php?e=413
    ErrorDocument 414 /httperror.php?e=414
    ErrorDocument 415 /httperror.php?e=415
    ErrorDocument 416 /httperror.php?e=416
    ErrorDocument 417 /httperror.php?e=417
    ErrorDocument 500 /httperror.php?e=500
    ErrorDocument 501 /httperror.php?e=501
    ErrorDocument 502 /httperror.php?e=502
    ErrorDocument 503 /httperror.php?e=503
    ErrorDocument 504 /httperror.php?e=504
    ErrorDocument 505 /httperror.php?e=505

    # 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 /
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    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 %{REQUEST_FILENAME}forum\.php -f
    RewriteRule ^(.*)$ $1forum.php [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

  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 try to add this line:
    Code:
    RewriteCond %{REQUEST_FILENAME} !cgi-bin/
    right above this one:
    Code:
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    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
    Junior Member
    Real Name
    thecat
    Join Date
    Sep 2006
    Posts
    9
    Liked
    0 times
    Thank you that fixed the cgi-bin access problem.

    The 404, 403, 401 error pages still do not work, they are served by the httperror.php located at public_html/httperror.php

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Great!
    You should use "Custom 404 handler" option in vbseocp to define 404 error document since all "not found" requests are now processed by vBSEO.
    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
  •