hello i thought it would be nicer to have clean urls.
so i would like to use basename for basename($_SERVER['SCRIPT_NAME'])
i would like to save the basename into a variable that i can use for header function like this:
$basename = basename($_SERVER['SCRIPT_NAME']);
if ($pref_language == 'af'){
header('Location:en'.$basename;
exit;
}
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.
you have a missing
)in your codetry: