Results 1 to 4 of 4

Wrong Regex

This is a discussion on Wrong Regex within the Bug Reporting forums, part of the vBSEO SEO Plugin category; If a Thread is titled "<whatever><numbers>", for example "This is a Testtthread1234" there is a problem with the regexes: With ...

  1. #1
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times

    Wrong Regex

    If a Thread is titled "<whatever><numbers>", for example "This is a Testtthread1234" there is a problem with the regexes:

    With our URL format, the thread URL would be "<threadid>-this-is-a-testthread1234.html".

    If a user edits a post in this thread via normal edit (editpost.php), he gets redirected to showthread.php?post=X#postX.

    vBSEO then redirects this to this-is-a-testthread1234-postX.html

    Now here comes the Bug: vBSEO then takes the post1234-post part of the URL and redirects to showpost.php?p=1234, which is a totally different post.
    Last edited by Eagle; 08-28-2009 at 02:37 AM.

  2. #2
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    With our URL format, the thred URL would be "this-is-a-testthread1234.html".
    What is your thread URL format set to, in vbseoCP ?
    It doesn't seem to contain the (required) ThreadID.

  3. #3
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Hello Carlsten ,

    Can you please create a support ticket with example links so we can reproduce the issue on your site
    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

  4. #4
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times
    @shadab
    You are right - I forgot to include the threadid in my post.
    Here is the configuration:
    PHP Code:
        define('VBSEO_URL_THREAD',                  '%forum_title%/%thread_id%-%thread_title%.html');
        
    define('VBSEO_URL_THREAD_LASTPOST',         '%forum_title%/%thread_id%-%thread_title%-last-post.html');
        
    define('VBSEO_URL_THREAD_NEWPOST',          '%forum_title%/%thread_id%-%thread_title%-new-post.html');
        
    define('VBSEO_URL_THREAD_GOTOPOST',         '%forum_title%/%thread_id%-%thread_title%-post%post_id%.html');
        
    define('VBSEO_URL_THREAD_GOTOPOST_PAGENUM''%forum_title%/%thread_id%-%thread_title%-post%post_id%-%thread_page%.html');
        
        
    define('VBSEO_URL_THREAD_PREV',             '%forum_title%/%thread_id%-%thread_title%-prev-thread.html');
        
    define('VBSEO_URL_THREAD_NEXT',             '%forum_title%/%thread_id%-%thread_title%-next-thread.html');

        
    define('VBSEO_URL_THREAD_PRINT',            '%forum_title%/%thread_id%-%thread_title%-print.html');
        
    define('VBSEO_URL_THREAD_PRINT_PAGENUM',    '%forum_title%/%thread_id%-%thread_title%-%thread_page%-print.html');
        
    define('VBSEO_URL_POST_SHOW',               '%post_id%-post%post_count%.html');

        
    define('VBSEO_URL_THREAD_PAGENUM',          '%forum_title%/%thread_id%-%thread_title%-%thread_page%.html');
        
    define('VBSEO_URL_THREAD_GARS_PAGENUM',     ''); 

Similar Threads

  1. Little regex help
    By Ocean in forum Off-Topic & Chit Chat
    Replies: 1
    Last Post: 09-23-2007, 08:17 AM
  2. RegEx on target not working
    By Adult SEO in forum URL Rewrite Settings
    Replies: 1
    Last Post: 11-25-2006, 05:08 PM
  3. regex not working
    By msimonds in forum Troubleshooting
    Replies: 11
    Last Post: 10-22-2005, 08:45 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
  •