First URL Rewrite. Not working !

Discussion in 'Apache' started by afridy, Dec 20, 2010.

  1. #1
    Hai folks,

    I want to rewrite below url
    http://mysite.com/peoplesearch.php?FirstName=First+Name&LastName=tom&Submit=Find
    Code (markup):
    to
    http://mysite.com/tom.html
    Code (markup):
    * the last name parameter is always changing. for example i have put 'tom' in that.

    Now i have done the rewriting and upload the .htaccess to my root folder. but it's not working

    my .htaccess as follows.

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*)\.html$ peoplesearch.php?FirstName=First+Name&LastName=$1&Submit=Find [L]
    
    AddType x-mapp-php5 .php
    Code (markup):
    Please Help !
     
    afridy, Dec 20, 2010 IP