Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
This post follows another one, at the end of which I concluded that I better rewrite my php addresses with mod_rewrite to remove the vars in adresses.
I wonder though if there are rules in the choice of characters to use in the rewritten addresses. I have to pass all the vars I had in GET to build a fake document name that will be rewritten. But I have to find the names of the vars and their values in order to 'rescramble' the querystring with mod_rewrite.
I thought of separating my variables names with a character never found in the names of the vars or their values, probably underscore ( _ ). That means that the 'fake' name might look like i13_ttmain_le_d2.htm for example.
Would it be bad practice? Could a long filename prevent my website from being properly indexed? I don't really care if the adress is not 'human readable', as long as it is indexed.
Thanks for the advice.
General feeling here is that a hyphen might offer a small advantage over an underscore because hyphens are word separators, and break a URL into keywords.
The characters you can use in domain names are pretty restricted: a-z, 0-9, and the '-' character. For subdomains and url paths (stuff after the slash), you've got a lot more flexibility, but I'd recommend keeping it pretty simple. That makes it easier for search engines and users to understand.
There's actually a proposal so that you can encode all sorts of characters in a domain (e.g. CJK--Chinese/Japanese/Korean) but that's a little outside the scope of your question, and I'm not as familiar with the encoding. My rule of thumb is to keep it simple where you can.