Need A Simple Htaccess RewriteRule

Discussion in 'Apache' started by techbongo, Feb 18, 2012.

  1. #1
    My url pattern is as follows:
    xyz.com/actions/action_name?var1=val1&var2=val2...

    This needs to be redirected to
    xyz.com/loader.php?action=action_name&var1=val1&var2=val2...

    Please help me write the htaccess code. I've already spent 3 hrs trying this and need your help folks.

    Thanks in advance.
     
    techbongo, Feb 18, 2012 IP
  2. RadioBounce

    RadioBounce Banned

    Messages:
    4,171
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    0
    #2
    RewriteEngine OnRewriteRule ^actions/([^/]*)/([^/]*)$ /actions/action_name?var1=$1&var2=$2 [L]
    Code (markup):
    I'm about 90% sure this won't work but worth a try. May need editing.
     
    RadioBounce, Feb 18, 2012 IP
  3. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Not working :(
    Anyway thanks for responding...

    Any solution plz?
     
    techbongo, Feb 18, 2012 IP