1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help in .htaccess

Discussion in 'PHP & Perl' started by bakry3d, Mar 18, 2009.

  1. bakry3d

    bakry3d Newbie

    Joined:
    Mar 17, 2009
    Messages:
    20
    Likes Received:
    0
    hello evry one

    i have sites dir script but i want change site-(.*)\.html$

    to site name

    Code:
    ex : [URL="http://www.domain.com/dir/black-hot"]www.domain.com/dir/black-hot[/URL]
    #SWITCH mod_rewrite ON
    Options +FollowSymLinks
    RewriteEngine on
    #OUR ABOVE CODE

    RewriteRule site-(.*)\.html$ site.php?id=$1


    thanks