Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17

htaccess / admincp woes

This is a discussion on htaccess / admincp woes within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I had a problem or rather issue in vb admincp to do with the vbseo entries in my htaccess file. ...

  1. #1
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Question htaccess / admincp woes

    I had a problem or rather issue in vb admincp to do with the vbseo entries in my htaccess file.

    What happened was I could not "dismiss" the service notes that show when you login to admincp. VB told me to remove all the vbseo stuff out of my htaccess file and then try - sure enough, it worked.

    I have put back all the vbseo entries into my htaccess file but I wonder if there is a fix / alternative?

    The first entry BTW is what VB support reckons was causing the problem.

    RewriteCond %{THE_REQUEST} ^.*\/index\.php
    RewriteCond %{THE_REQUEST} !vbseo_sitemap
    RewriteRule ^(.*)index\.php$ http://www.mydomain.tld/$1 [R=301,L]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

  2. #2
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    please tell me you changed the mydomain.tld part right?
    The Forum Hosting - Forum Hosting from the Forum Experts

  3. #3
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Lightbulb Yes, yes

    of course!

  4. #4
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    Only thing different from mine is the top 3 lines on yours. Mine looks like:

    Code:
    RewriteCond %{HTTP_HOST} ^vbulletinzone\.com
    RewriteRule (.*) http://www.vbulletinzone.com/$1 [L,R=301]
    Also is RewriteEngine On before all of this in the .htaccess file?
    The Forum Hosting - Forum Hosting from the Forum Experts

  5. #5
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Cool Hi Mike, thanks

    but I have that as well, it is not related to vbseo, it is a canonical problem fix that makes calls for yourdomain.com resolve to www.yourdomain.com. I have a whole bank of them, including for IP address and /index.php to / to stop my competitors from getting me duplicate content penalties.

  6. #6
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    You don't need a whole bank of redirects, since the sample rule included in vBSEO's .htaccess redirects anything that is NOT your primary domain that you have listed.

    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
    The ! means NOT. So, that will redirect anything that is NOT www.yourdomain.com to www.yourdomain.com

  7. #7
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Keith

    Excuse me, this is nothing to do with my problem and with respect please do not try and undo good webmastering.

    If I have a redirect from my IP to my domain, I do not think it is yours or anyone elses to shoot down.

    I would like a response to my problem please, not problems that do not exist

  8. #8
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Just so you can see it

    VB support after having looked at my htaccess file said this;

    RewriteCond %{THE_REQUEST} ^.*\/index\.php
    RewriteCond %{THE_REQUEST} !vbseo_sitemap
    RewriteRule ^(.*)index\.php$ http://www.mydomain.tld/$1 [R=301,L]

    was likely the cause of my problem

  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Quote Originally Posted by Travelforum View Post
    Excuse me, this is nothing to do with my problem and with respect please do not try and undo good webmastering.

    If I have a redirect from my IP to my domain, I do not think it is yours or anyone elses to shoot down.

    I would like a response to my problem please, not problems that do not exist
    I'm just telling you the more efficient way to do the same thing you're already doing. One redirect, versus one for an IP, and one for your domain, and one for another domain, etc. Please re-read what I posted.

  10. #10
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Keith

    thanks, but I did not post here to get a more efficient way of doing what I am doing already, no problem, regarding search engine canonical issues

    what I posted here for was a problem with vb admin and vbseo entries in my htaccess file, as identified by vb support

    with respect, please re-read my post

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    The entry you specified that is causing a problem doesn't seem to be part of the default vBSEO .htaccess file:

    Code:
    # 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
    # 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 %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

  12. #12
    Member
    Real Name
    Steve James
    Join Date
    Mar 2007
    Posts
    38
    Liked
    0 times

    Hi Keith

    OK, thanks, so I wonder where it came from, as I never added it.

    So I can remove this no problem to vbseo you are saying;

    RewriteCond %{THE_REQUEST} ^.*\/index\.php
    RewriteCond %{THE_REQUEST} !vbseo_sitemap
    RewriteRule ^(.*)index\.php$ http://www.mydomain.tld/$1 [R=301,L]

  13. #13
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Well, I can't say that you can remove it with no problem, since I'm not sure why it was there. But, it should not be required for vBSEO.

  14. #14
    Junior Member
    Real Name
    Big Island
    Join Date
    Mar 2007
    Posts
    25
    Liked
    0 times

    Admincp directs to main forum page

    I can't even get to admincp after the 3.1.0 upgrade

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please check this troubleshooting entry:
    16) I have a problem accessing vB admincp: 404 error is displayed or page is redirected to forums homepage.

    If you have restricted access to your admincp folder using .htaccess (Auth directives), please check
    your apache configuration: having "ErrorDocument 401 401.shtml" directive in httpd.conf requires that
    "401.shtml" file exists. You should create one if it doesn't to solve the problem.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 2 1 2 LastLast

Similar Threads

  1. your htaccess file broke my stuff!
    By jwatsonl in forum Troubleshooting
    Replies: 1
    Last Post: 05-01-2007, 10:39 PM
  2. Problem with htaccess
    By Hawork in forum General Discussion
    Replies: 1
    Last Post: 04-13-2007, 09:23 PM
  3. Problemas con htaccess
    By Hawork in forum Espaņol
    Replies: 0
    Last Post: 04-13-2007, 12:31 PM
  4. vbSEO htaccess rewrite rules broke my admincp...
    By TECK in forum Troubleshooting
    Replies: 5
    Last Post: 05-14-2006, 02:28 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
  •