How should I deal with spaces in links ?

by Jekiko Banned
3 replies
Hi,
I am generating dynamic links and some don't work.

Is it because they have a space in the link ?

eg: from the name "David Franklyn", I get the link

<a href="www.mysite/David Franklyn/sports/Franklyn.html">David Franklyn</a>

What would be the best way to deal with the spaces ?

Someone suggested replacing them with a %20 ,
others with an underscore, or I could use a hyphen.

Which is best from a search engine view point ?

With the above example:

mysite/David%20Franklyn/sports/Franklyn.html
or
mysite/David-Franklyn/sports/Franklyn.html
or
mysite/David_Franklyn/sports/Franklyn.html

or something else ?

Does anyone know about these things ?

Thanks for any help.
#deal #links #spaces

Trending Topics