Welcome to WebmasterWorld Guest from 18.104.22.168
I can do all that until I run across a name with an apostrophe. I've tried str_replace to remove the apostrophe so that it does not show up in the URL but then I cannot get it back to pull the rest of the data.
The simplest solution would be to use $id along with $pagename but I really would like the URL to show just the value of $pagename.
What are my options?