Results 1 to 7 of 7

Custom Rewrite Help

This is a discussion on Custom Rewrite Help within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; Hi. I'm having trouble doing a custom rewrite (I've never done it before). Basically, I want all instances of this: ...

  1. #1
    Member
    Real Name
    Mike Warner
    Join Date
    Feb 2006
    Posts
    82
    Liked
    1 times

    Question Custom Rewrite Help

    Hi. I'm having trouble doing a custom rewrite (I've never done it before). Basically, I want all instances of this:
    MIG Performance Vauxhalls

    changed to this:
    MIG Performance Vauxhalls

    Any help would be greatly appreciated.

  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 Mike,

    As far as I understand, do you want to apply a redirect from http://www.migweb.co.uk/forums/newthread.php?do=newthread&f=106 to http://www.migweb.co.uk/forums/misc.php?do=form&fid=1 ?

    If so, you can apply the following Custom Redirect on vBSEO CP:

    '^newthread\.php\?do=newthread&f=106$'=>'misc.php? do=form&fid=1'
    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
    Mike Warner
    Join Date
    Feb 2006
    Posts
    82
    Liked
    1 times
    Brilliant - that works perfectly!! Thanks for the very quick reply.

  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
    Mike Warner
    Join Date
    Feb 2006
    Posts
    82
    Liked
    1 times
    Quick correction, it is the 'Custom Rewrite Rules' this needs adding to, not the 'Custom Redirects' rules. Thanks again.

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Quote Originally Posted by Andrés Durán Hewitt View Post
    If so, you can apply the following Custom Redirect on vBSEO CP:

    '^newthread\.php\?do=newthread&f=106$'=>'misc.php? do=form&fid=1'
    the custom redirect is the correct spot. You aren't rewriting anything... you're moving the destination via redirect.

  7. #7
    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
    There are differences among a Custom Redirect and a Custom Rewrite Rule. A Custom Redirect is merely a *redirection*, while a Custom Rewrite Rule is a way to "disguise" a given URL *using* the data supplied on it through regular expressions that match a given pattern within a string.

    I mean, with a Custom Rewrite Rule you can transform a dinamic URL like this one:

    Code:
    http://www.example.org/articles/view.php?articleid=7328&page=4&action=print
    to something like:

    Code:
    http://www.example.org/articles/article-7328/page4-print.html
    You see the difference?.

    The regex you entered in "Custom Rewrite Rules" area worked because a redirect is needed to transform an URL.
    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. Help per Custom Rewrite
    By jarod1981® in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 08-23-2008, 08:26 PM
  2. Rewrite for custom 'app' - rewrite and retrieving 'GET' variables..?
    By amnesia623 in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 02-09-2008, 01:50 AM
  3. Anyone using Custom Rewrite Rules to rewrite OpenAds ad urls?
    By echamberlain in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 12-12-2007, 06:24 PM
  4. URL Rewrite Settings / Custom Rewrite Rules
    By shanemcse in forum General Discussion
    Replies: 0
    Last Post: 03-04-2006, 01:57 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
  •