Hi, I want to rewrite some URLs from a site , and I'm using the next code
if(strpos($SERVER['SCRIPT_URL'],'offers_earlybooking_view.php')!==false){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: oferte_early_booking".strtolower(str_replace(' ','',$hotel_name))."".strtolower(str_replace(' ','',$r["category_name"]))."".strtolower(str_replace(' ','_',$r["hotel_country_name"]))."-".$r["eb_id"].".html" );
exit();
}
The code works greate, but I have now another problem. I got in the URL from the hotel name ( where it exist names like Hotel Name&Resort ) & or when I have ( Hotel Name-Name) I got - , and all kind of signs like that. How could I put in my code to ignore those signs.
Thank you