SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Having trouble with a simple redirect

    I am not only changing the php that I'm using, but also the variable I am passing in the URL. Can someone help me to see what I'm obviously missing?

    Thanks!

    # Redirect oil-testimonials.com/registerAuthorize.php?uID=32376 to register.php?confirmID=32376
    RewriteRule ^registerAuthorize\.php?uID=([0-9]+)$ register.php?confirmID=$1 [R=301,L]
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    bb,

    You've been here long enough to know better than that! OMG! Expecting to examine the {QUERY_STRING} in a RewriteRule regex - it'll never happen.

    Okay, now that you've been properly chastised, please allow me to recommend a review of the tutorial linked in my signature - then look at the examples dealing with query string manipulation.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm sorry that I'm not as educated as you are. I did attempt to look at your tutorial and examples and was not able to make sense of it.
    Convert your dollars into silver coins. www.convert2silver.com

  4. #4
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Can you please help me DK?
    Convert your dollars into silver coins. www.convert2silver.com

  5. #5
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    busboy,

    If you attempted to read the tutorial and couldn't understand parts of it, PLEASE ask questions. I have been here for years and it's helped members all through those years so you're the first.

    I am willing to help if I know that you're trying and make an attempt to learn because I will not help "script kiddies" and there have been a few in here that were upset that they didn't get someone to code for them for free. Just let me know how to help you understand the tutorial so you can be knowledgeable, too.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •