Convert user title (text) to URL, what instead spaces, #, & and other characters?
- by Thomas
I have some form on the website where users can add new pages. I must generate SEO friendly URLs and make this urls unique.
What characters can I display in url, I know that spaces I should convert to undescore:
" "-"_" and before it - underscores to something else, for example:
""-"()"
It is easy make title from url back.
But what in my specific title can be all characters from keyboard, even : @#%:"{/\';.
Are some contraindications to don't use this characters in URL?
Important for me is:
-easy generate url and title from url back (without queries to database)
-each title are unique, so url must be too
-SEO friendly URLs