I need help creating this PHP snippet.
What I'd like is to have a script that determines if the location of the page the user is on contains the "www." or not. If it does, I'd like to have it change the header location to remove the "www.", but still be on the same page.
I'd also like to have this be dynamic, so I can insert it in any current documents I have, without changing the code.
Can anyone help me? Thanks!
G