Is it possible with htaccess?

Discussion in 'Apache' started by mico77, Jun 8, 2009.

  1. #1
    Is it possible to change link on my website with .htaccess from
    www . my - web - site . com/static.php?page=flash
    to
    www . my - web - site . com/flash.php
    ?
    If yes, can somebody help me with this?

    Thanks,
    M
     
    mico77, Jun 8, 2009 IP
  2. mico77

    mico77 Active Member

    Messages:
    242
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    no one knows?
     
    mico77, Jun 17, 2009 IP
  3. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is impossible to modify a link but possible to give client the same as www . my - web - site . com/flash.php when he asking for www . my - web - site . com/static.php?page=flash
     
    vasyl, Jun 17, 2009 IP
  4. mico77

    mico77 Active Member

    Messages:
    242
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Do you know how to do that?
    Thanks,
    M
     
    mico77, Jun 17, 2009 IP
  5. gregberwitz

    gregberwitz Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you want
    www . my - web - site . com/flash.php
    Code (markup):
    to redirect to
    www . my - web - site . com/static.php?page=flash
    Code (markup):
    use this in htaccess
    RewriteRule ^(.*).php$ static.php?page=$1
    Code (markup):
     
    gregberwitz, Jun 19, 2009 IP