PHP友好URL的问题

I can get friendly URL working on localhost but not on my web server. Any ideas.

$countryfriendly = GenerateUrl ($country_name_bread);

$regionfriendly = GenerateUrl ($region_name_bread);

$townfriendly = GenerateUrl ($town_name_bread);

$titlefriendly = GenerateUrl ($fetch_property["property_name"]);

Above is taken from breadcrumb and put into button below (URL friendly button)

<!--<a href="/' .$countryfriendly .'/' .$regionfriendly. '/' .$townfriendly. '/' . $titlefriendly . '/' .md5($id).'" button type="submit" class="btn btn-  primary">MORE DETAILS</button></a>-->

Original button

<a href="'.$WS_PATH.'/members/property_details.php?q='.md5($id).'&he=act"    button type="submit" class="btn btn-primary">MORE DETAILS</button></a>

Web page source code shows

<!--<a href="/portugal/algarve/lagos/name/819f46e52c25763a55cc642422644317" button type="submit" class="btn btn-primary">MORE DETAILS</button></a>-->

Its correct but click it and it goes nowhere? Its commented out as you can see atm.

The original works fine

<a href="http://www.domain.com/members/details.php?q=819f46e52c25763a55cc642422644317&he=act" button type="submit" class="btn btn-primary">MORE DETAILS</button></a>

The friendly URL button link only works on localhost? It doesn’t work on my webserver… It shows correctly but goes nowhere when clicked?? error is "404 page not found".....

Options +FollowSymLinks All -Indexes RewriteEngine on

for town

RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php/(.*)  /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4&pg=$5 [L]

for town

RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php  /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4 [L]

for states/region

RewriteRule ^continent/(.*)/(.*)/(.*).php  /maps.php?contifolder=$1&countryfolder=$2&getstate=$3 [L]

for countries

RewriteRule ^continent/(.*)/(.*).php  /maps.php?contifolder=$1&getcountry=$2 [L]

for continents

RewriteRule ^continent/(.*).php  /maps.php?getconti=$1 [L]

Anyone?