Results 1 to 10 of 10
Like Tree2Likes
  • 1 Post By Andrés Durán Hewitt
  • 1 Post By hqarrse

Weird path in rewrite

This is a discussion on Weird path in rewrite within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I have installed vbseo 2.3.2 on vbulletin 3.5.1 (+patch). When requesting a forum URL (forumdisplay), VBSEO seems to rewrite that ...

  1. #1
    Junior Member Array
    Join Date
    Dec 2005
    Posts
    16
    Liked
    0 times

    Weird path in rewrite

    I have installed vbseo 2.3.2 on vbulletin 3.5.1 (+patch). When requesting a forum URL (forumdisplay), VBSEO seems to rewrite that to the nice format. However, it does include some strange path info into the URL.

    HTTP Header recording is as following:
    Code:
    GET /show/forumdisplay.php?f=2 HTTP/1.1
    Host: forum.webhostlist.de
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://forum.webhostlist.de/show/
    Cookie: 
    
    HTTP/1.x 301 Moved Permanently
    Date: Sun, 01 Jan 2006 11:43:27 GMT
    Server: Apache
    X-Powered-By: PHP/5.1.1
    Location: http://forum.webhostlist.de/srv/www/show/script-serverseitig/
    Content-Length: 0
    Keep-Alive: timeout=15, max=88
    Connection: Keep-Alive
    Content-Type: text/html; charset=iso-8859-1
    I am not sure where the /srv/www are coming from. Since they are inserted at this part, the .htaccess (residing in the /show directory) will never get triggered and the server throws a 404. I have checked the config file and there seems to be no option to configure this behaviour.

    Thanks,

    Carsten

  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello Carsten,

    I sent a PM to you.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member Array
    Real Name
    Rob
    Join Date
    Jun 2010
    Posts
    41
    Liked
    1 times
    I am getting something similar seemingly out of the blue:

    The links to the newest post on the right hand side of the homepage listing look like this:

    http://www.navy-net.co.uk/finance-pensions/66034-armed-forces-must-wait-five-years-longer-pension-new-post.html

    as you would expect, but then redirect to this:

    http://www.navy-net.co.uk/part/of/my/file/path/finance-pensions/66034-armed-forces-must-wait-five-years-longer-pension.html#post1087385

    It works fine with VBSEO turned off

    VB 4.2, VBSEO 3.6.0 gold. Was the same on 4.1.12 and 3.6

    Any ideas please?

    Edit: this path snippet is also added to the URL if I click "Promote to Article" under a forum post
    Last edited by hqarrse; 06-20-2012 at 05:16 AM. Reason: Additional info

  4. #4
    Member Array
    Real Name
    Rob
    Join Date
    Jun 2010
    Posts
    41
    Liked
    1 times
    I have checked the filesystem for the string - not found - and cleared the system and VBOptimise caches. No change

  5. #5
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    Hello Rob ,

    Can you please try disabling vB Optimise temporary to see if the issue is still there without vB Optimise. Can you please also supply us your .htaccess content
    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

  6. #6
    Member Array
    Real Name
    Rob
    Join Date
    Jun 2010
    Posts
    41
    Liked
    1 times
    Hi Mert,

    I disabled VBOptimise in its own settings and the VB Products list - no change.

    I'm using Lighttpd, with the following lighttpd.conf config. I'm using the same config for two other sites without problem though, so I'm not hopeful the fault is here. Thanks for your help.

    Code:
    $HTTP["host"] == "www.navy-net.co.uk" {
    server.document-root = "/my/path/some/of/which/appears/in/the/url/www.navy-net.co.uk/"
    url.rewrite-once = ( 
    "^/rrpedia$" => "/wiki2/index.php",
    "^/rrpedia/(mw-)?config/?" => "$0",
    "^/rrpedia/([^?]*)(?:\?(.*))?" => "/wiki2/index.php?title=$1&$2",
    "^/rrpedia/([^?]*)" => "/wiki2/index.php?title=$1",
    "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
    "^(/(admincp|install|xcache-admin|gallery|dbtech|vboptimise|olive_scripts|olive_js|olive_images|mobiquo|olive_styles|modcp|clientscript|cpstyles|images|customavatars|wiki|rrpedia|api\.php)/.*)$" => "$1",
    "^(/vbseo/resources/(css|images|scripts)/.*)$" => "$1",
    "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
    "^/(.+)\?(.*)$" => "/vbseo.php?$2",
    "^/(.+)$" => "/vbseo.php"
    )
    auth.backend = "htpasswd"
    auth.backend.htpasswd.userfile = "/a/file"
    auth.require = ( "/admincp/" =>
    (
    "method" => "basic",
    "realm" => "Password protected area",
    "require" => "user=auser"
    )
    )
    }

  7. #7
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    I didn't use lighttpd for ages so i will let another staff member check the configuration Rob.
    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

  8. #8
    vBSEO Staff Array Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,859
    Liked
    567 times
    Blog Entries
    2
    Hi Rob,

    There may be a problem with the automatic detection of the full path to your forum. Please try this and let us know how it goes:

    * Login to your vBSEO Control Panel
    * Head to General Settings -> vBSEO Options -> Click on 'Advanced Settings' tab
    * Set the full path to your forums here: "Custom Doc Root"
    * Save the changes
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  9. #9
    Member Array
    Real Name
    Rob
    Join Date
    Jun 2010
    Posts
    41
    Liked
    1 times
    Hi andres">Andres, that cracked it. The problem seemed to appear from having a dotted domain in the path, so using:

    /my/path/www.navy-net.co.uk , the actual full path - in the options as you described above didn't work. No change

    using

    /my/path/navynet worked fine and the URLs are correct. This is a symlink I use to ensure backwards compatibility after the move to Lighttpd.

    I include that detail just in case it's any help in finding some obscure bug. If it is a bug.

    Thanks very much for the help.

  10. #10
    vBSEO Staff Array Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,859
    Liked
    567 times
    Blog Entries
    2
    We are glad to assist, Rob

    Thank you for your feedback!
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 34
    Last Post: 04-30-2013, 01:37 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-08-2005, 11:00 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
  •