smithbanana
New Member
hello i thought it would be nicer to have clean urls.so i would like to use basename for \[code\]basename($_SERVER['SCRIPT_NAME'])\[/code\]i would like to save the basename into a variable that i can use for header function like this:\[code\]$basename = basename($_SERVER['SCRIPT_NAME']);if ($pref_language == 'af'){ header('Location:en'.$basename; exit;}\[/code\]what does not work. so if there is someone who could tell me how to use this the right way i really would appreciate.thanks alot.