Forum Moderators: phranque

Message Too Old, No Replies

htaccess php file names with quotes and double quotes

htaccess php file names with quotes and double quotes

         

Lasash

3:32 pm on Mar 3, 2012 (gmt 0)

10+ Year Member



Hello all

I have a hard situation that google search did not help me to overcome it.

A client of mine asks to create file names via a php CMS with quotes and double quotes.

For example:

www.lindo.com/mr'_jones

or

www.lindo.com/mr"s_jones

Anyone knows what is the htaccess rule for that?

You help would be much appreciated.

Thank you all for reading

wilderness

3:52 pm on Mar 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hope your client pays you by the hour because he/she is certainly going to need your help down the road to repair all the mess of his ignorance

Punctuation in URl's is a bad, bad practice.
Even worse than mixing upper and lower case.

Lasash

4:04 pm on Mar 3, 2012 (gmt 0)

10+ Year Member



Hi wilderness, thank for your quick reply

Just out of curiosity, why is it so bad?

wilderness

4:17 pm on Mar 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here's an example [webmasterworld.com]

There are hordes more hear at Webmaster World and not just in the PHP forum of malformed urls that have been converted by either browsers or serps to unicode.

Lasash

4:21 pm on Mar 3, 2012 (gmt 0)

10+ Year Member



Thanks

So what you're saying is that using punctuation harms google because every browser reads it differently?

wilderness

4:23 pm on Mar 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



every browser, every machine, every OS, every server. . . .

g1smd

4:30 pm on Mar 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Quotes in URLs cause a lot of problems.

Looking at a site with a URL like
example.com/what's_new
you'll see that you cannot get a page preview for that page in the SERPs. In WMT you can't use the Page Preview tool nor can you use the Fetch as Googlebot function. They barf on the single quote.

Look at how Wikipedia does it. That's a pretty good model. Hint: where most sites would escape ( and ) in a URL as %28 and %29, Wikipedia uses .28 and .29 instead. However, best practice is to use only hyphens and periods in URLs if you can.

Lasash

4:34 pm on Mar 3, 2012 (gmt 0)

10+ Year Member



Hey guys,

Thanks for the very helpful information.
I myself think that giving seo-friendly url's such as:

www.your_website.com/your_address or your-address is enough

The problem is the guy wants that people google for "what's new" will arrive to his website, and he claims that only people who search "whats new" arrive.

Any ideas?

Thanks again!

wilderness

4:40 pm on Mar 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



He's referring to specific searches by visitors, NOT the URL.

Google:
"Whats new"
whats new
whats+new

webmasters have no control over what method a visitor chooses for the search procedures.
I had explanations in place for a decade for widget users suggesting that use quotes plus a key word.
EX:
"john smith" +widgets

Unfortunately they never grasped the concept ;(

Lasash

4:54 pm on Mar 3, 2012 (gmt 0)

10+ Year Member



wilderness, I hope that someday your concept will be grasped :)

Well, I talked to my client now, and it seems like you guys convinced him, so thanks a million!