Mod Rewrite Help

Discussion in 'Programming' started by affihq, Aug 30, 2007.

  1. #1
    What I did first of all was take my dynamic url:
    http://x.com/index.php?id=1&idd=2
    and turn it dynamic using the following code:

    
    RewriteEngine on
    Options +FollowSymlinks
    RewriteBase /
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?id=$1&idd=$2 [L]
    
    Code (markup):
    Next I want to make one page static and redirect it to a different static file.
    For example, I want to keep that rule the same for all other urls, but for the following I want it to redirect to a specific file.

    for example:
    http://x.com/index.php?id=99&idd=99
    must redirect to http://x.com/99.html
    while everything else just gets rewritten

    how would I write this for mod rewrite?



    Thanks in advance
     
    affihq, Aug 30, 2007 IP
  2. DecisionsIN

    DecisionsIN Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    DecisionsIN, Aug 30, 2007 IP