Page 2 of 2 FirstFirst 1 2
Results 16 to 23 of 23

Hi, Can VBSEO Recdirect Zoints SEO URLS??

This is a discussion on Hi, Can VBSEO Recdirect Zoints SEO URLS?? within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; You have different URL format comparing to mentioned above. Please try this rewrite rule in .htaccess (right after RewreiteEngine on): ...

  1. #16
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You have different URL format comparing to mentioned above.
    Please try this rewrite rule in .htaccess (right after RewreiteEngine on):
    Code:
    RewriteRule ^showthread\.php/[^/]+-([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]

  2. #17
    Junior Member
    Real Name
    Dave Sleep
    Join Date
    Dec 2007
    Posts
    13
    Liked
    0 times
    Thankyou so much that worked perfect , I started to worry as I was getting loads of 404's and could not fix it

  3. #18
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Great, you are welcome!

  4. #19
    Member
    Real Name
    Imran
    Join Date
    Nov 2006
    Posts
    47
    Liked
    0 times
    I'm getting 500 Internal server error
    This is what is in 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]
    RewriteRule ^[^/]*-f([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L]
    RewriteRule ^[^/]*-t([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$2 [L]
    Code:
    RewriteRule ^[^/]*-f([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L]
    RewriteRule ^[^/]*-t([0-9]+)(?:p([0-9]+))\.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$2 [L]
    The above looks like causing the Internal server error.

  5. #20
    Member
    Real Name
    Imran
    Join Date
    Nov 2006
    Posts
    47
    Liked
    0 times
    Code:
    [Wed Dec  5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    [Wed Dec  5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    [Wed Dec  5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    [Wed Dec  5 01:30:19 2007] [alert] [client client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    [Wed Dec  5 01:27:41 2007] [alert] [client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    [Wed Dec  5 01:27:41 2007] [alert] [client IP Address] /home/user/public_html/forums/.htaccess: RewriteRule: cannot compile regular expression '^[^/]*-f([0-9]+)(?:p([0-9]+))\\.html$'\n
    This might help you understand the error bit more.

  6. #21
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Try to change rewrite rule to:
    Code:
    RewriteRule ^[^/]*-f([0-9]+)\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L]
    RewriteRule ^[^/]*-t([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
    Also, you should insert them right after "RewriteEngine on" line, NOT at the bottom.

  7. #22
    Member
    Real Name
    Imran
    Join Date
    Nov 2006
    Posts
    47
    Liked
    0 times
    Yeh this one seems to be working, fine thanks. Will report back if there are any errors or not Thanks.

  8. #23
    Junior Member
    Real Name
    shri
    Join Date
    Dec 2007
    Posts
    5
    Liked
    0 times
    Oleg : FYI, that code

    RewriteRule ^[^/]*-f([0-9]+)\.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L]
    RewriteRule ^[^/]*-t([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L]

    Worked on my setup.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Google Sitemap-Listing of old url's option-from 1.7
    By T2DMan in forum Member Articles
    Replies: 0
    Last Post: 04-02-2006, 08:46 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
  •