Results 1 to 8 of 8

redirect problem

This is a discussion on redirect problem within the General Discussion forums, part of the vBulletin SEO Discussion category; Hi Guys, i have thise rule (nginx) rewrite ^/[^/]+/([0-9]+)-.+.\.html$ / vbseo .php?vbseourl=showthread.php&t=$1 last; this works fine, it makes from www.domain.tld/categories/435345-the-thread.html ...

  1. #1
    Member
    Real Name
    derrene
    Join Date
    Feb 2008
    Posts
    56
    Liked
    0 times

    redirect problem

    Hi Guys,

    i have thise rule (nginx)
    rewrite ^/[^/]+/([0-9]+)-.+.\.html$ /vbseo.php?vbseourl=showthread.php&t=$1 last;

    this works fine,
    it makes from www.domain.tld/categories/435345-the-thread.html

    to
    www.domain.tld/categories/the-thread-435345.html

    my problem
    when user type a number in fist on the new thread title, then is the link coruppt and will linked to another oldest thread as there new one created.
    How can i solve this?

    sorry for my english i hope you can understand me
    TY for your help

  2. #2
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello,

    Please try adding this rule above that one:

    rewrite ^(/[^/]+/[0-9]+-.+-[0-9]+\.html)$ /$1 last;
    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


  3. #3
    Member
    Real Name
    derrene
    Join Date
    Feb 2008
    Posts
    56
    Liked
    0 times
    thank you this works pretty! *i search for an thumb up smilie =)*

    offtopic
    can anyone send me my question in the frist post in correct english via private message?

  4. #4
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Great!
    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


  5. #5
    Member
    Real Name
    derrene
    Join Date
    Feb 2008
    Posts
    56
    Liked
    0 times
    Hi Andrés,

    sorry but your solution does not work to 100% maybe 60%

    here my config
    server {
    listen 80;
    server_name www.heirats-freu.de ;
    # Redirect from www to non-www
    if ($host = 'heirats-freu.de' ) {
    rewrite ^/(.*)$ http://www.heirats-freu.de/$1 permanent;
    }

    if ($host = 'heiratsfreu.de' ) {
    rewrite ^/(.*)$ http://www.heirats-freu.de/$1 permanent;
    }

    rewrite ^/forum/(.*)$ http://www.heirats-freu.de/$1 permanent;
    rewrite ^(/[^/]+/[0-9]+-.+-[0-9]+\.html)$ /$1 last;
    rewrite ^/[^/]+/([0-9]+)-.+.\.html$ /vbseo.php?vbseourl=showthread.php&t=$1 last;
    i dont know wat is wrong

    in first of
    i have change my link structure (i know never change a fire and forget setting)

    it works 50:50 fine and perfekt and sometimes not

    this one
    http://www.heirats-freu.de/testspielplatz/12-thread-teest-34185.html

    change to
    http://www.heirats-freu.de/unsere-eheringe/unsere-ringe-12.html

    100% error
    when i click on this link strukture
    http://www.heirats-freu.de/testspielplatz/12-thread-teest-34185-new-post.html
    and
    http://www.heirats-freu.de/testspielplatz/12-thread-teest-34185-post1187683.html#post1187683

    i dont know why.
    please help me

  6. #6
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello,

    Please try changing the rule I supplied above for:

    rewrite ^(/[^/]+/[0-9]+-.+-[0-9]+(-.+)?\.html)$ /$1 last;
    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


  7. #7
    Member
    Real Name
    derrene
    Join Date
    Feb 2008
    Posts
    56
    Liked
    0 times
    Thank you !!!


  8. #8
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    You're welcome!.

    Nice picture BTW
    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. 301 redirect problem
    By fonzi in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 02-09-2008, 04:34 PM
  2. 301 Redirect Problem
    By joellus in forum URL Rewrite Settings
    Replies: 3
    Last Post: 12-29-2007, 01:12 AM
  3. Redirect problem
    By Doug Nelson in forum General Discussion
    Replies: 10
    Last Post: 11-23-2007, 08:12 PM
  4. Redirect problem
    By emdee90 in forum URL Rewrite Settings
    Replies: 2
    Last Post: 06-03-2007, 06:19 PM
  5. Redirect problem
    By Notorious in forum Troubleshooting
    Replies: 5
    Last Post: 10-12-2006, 07:59 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
  •