Adding a new redirection

Discussion in 'WordPress' started by elmobd3, Jul 3, 2010.

  1. #1
    I hope to know how to add a new redirection.
    like this site nbanews.us
    when a user open nbanews.us/15 ,he'll redirect to nbanews.us/?id=15
    the 2 links opening the homepage but showing the protected link
    and there is another redirection inside the first like this nbanews.us/?id=15&d=1
    the idea here another script inside Wordpress

    I just hope to know how to add this redirection.
     
    elmobd3, Jul 3, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,938
    Likes Received:
    4,563
    Best Answers:
    124
    Trophy Points:
    665
    #2
    thats a mod rewrite issue not wordpress, surely?
     
    sarahk, Jul 3, 2010 IP
  3. elmobd3

    elmobd3 Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    At first I thought that, but I realized that's a permalink or a link Structure based upon the index.php
    when u open for example nbanews.us/15 , u will be redirect to nbanews.us/?id=15 surely that's a mod rewrite
    but there is a new content inside redirected link. "There is a new rectangle that inside it Click here to go to the next page >>> that will take u to nbanews.us/?id=15&d=1"
    so i think it's a a mod rewrite with create a new permalink or a link Structure that showing a custom content.
     
    elmobd3, Jul 3, 2010 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Just looking at it quickly...they don't have permalinks set. They are still default, No matter what the link text says...the permalinks are still not set. It's not a redirect. It's just a default permalink setting.
    Is this your site?
     
    hmansfield, Jul 5, 2010 IP
  5. elmobd3

    elmobd3 Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No,it isn't my site but I hope to make that inside my blog.
     
    elmobd3, Jul 6, 2010 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,938
    Likes Received:
    4,563
    Best Answers:
    124
    Trophy Points:
    665
    #6
    So what have you discovered about mod rewrite and what have you tried?
     
    sarahk, Jul 9, 2010 IP
  7. elmobd3

    elmobd3 Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I can put
    RewriteRule ^([0-9][0-9])$  /index.php?ID=$1 
    Code (markup):
    at .htaccess
    so when a user open any link like kimo.com/44 , he'll redirect to kimo.com/index.php?ID=44
    we know the parameter "p" at wordpress show a specific topic but I need to know how to add and identify the parameter "ID" to show a specific link :confused::confused:
    like that nbanews.us/?id=15
     
    elmobd3, Jul 12, 2010 IP
  8. SupplementResearch

    SupplementResearch Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #8
    There's a plugin for WordPress called "Redirection" which allows you to do mod rewrite rules without having to code them. It's pretty simple to use.
     
    SupplementResearch, Jul 12, 2010 IP
  9. elmobd3

    elmobd3 Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    any help ?
     
    elmobd3, Jul 20, 2010 IP
  10. abercrombies

    abercrombies Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks a lot
     
    abercrombies, Jul 21, 2010 IP