Hello, Can someone please tell me how to remove ?u= from the end of an URL? The ?u= should only be removed if it is at the end of the URL with nothing after it. For example if the URL ends with ?u=test then it should not be rewritten. Thanks, Leo
I suspect this more of issue with the script you are using then with Apache. Mod rewrite will rewrite the URLs to something more friendly. That would completely eliminate the ?u= part.
Thank you. Unfortunately in this case I can't use rewrite to remove the ?u=, but I used a str_replace to remove only empty ?u= from the output, works great. Thanks for the suggestion.