Forum Moderators: open

Message Too Old, No Replies

Non-alphanumerical characters in url

         

panos

7:14 pm on May 18, 2003 (gmt 0)

10+ Year Member



Can someone please explain how google interprets
non-alphanumerical characters in url?

for example i know that :

keyword-keyword --> keyword keyword
keyword_keyword --> keyword_keyword

what about

keyword=keyword?

keyword/keyword?

thanks ,panos

jdMorgan

7:53 pm on May 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



panos,

Those last two would not be legal domain names, so Google doesn't interpret them. The "=" would only be legal inside a query string, and "/" would only be legal as part of a (file) pathname. (Colons, slashes, and periods have special meanings when interpreting URLs, and their use is restricted.)

"keyword-keyword" is about as good as you can get.

Jim

hutcheson

7:55 pm on May 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is no reason to ever suppose anyone interprets them in any way other than "invalid URL."

In other words, don't do it and don't worry about which browsers, proxy servers, and spiders you're not blocking by not doing it.

Caveat: yes, I know that the Infernal Exploder, in one of its many offenses against standardization, has a way of munging invalid URLs into something else that might have been what was meant. But so what? EVERYONE handles correct URLs correctly--even Google.

panos

8:07 pm on May 18, 2003 (gmt 0)

10+ Year Member



Thanks for the quick reply!

I use mod_rewrite ,
the url
looks like :

www.servername.com/keyword1/keyword2-f=3.html

1.is this url ok for spiders?
2.will google see this page as a static page?
3.will the "=" character cause any problems?

thanks again ,panos

phpmaven

8:24 pm on May 18, 2003 (gmt 0)

10+ Year Member



panos,

If you use an "=" as part of your urls, you are going to have plenty of trouble. I use mod_rewrite on my site as well, however I can see no reason why you need to have an "=" in your urls.

The following url construction would be much beter:

www.servername.com/keyword1_keyword2_3.html

Then your rewrite rule could be:

RewriteRule ^(.*)\_(.*)\_(.*).html www.servername.com/whatever.html?k1=$1&k2=$2&f=$3