andyrossy — 2009-08-04T09:47:17-04:00 — #1
A client of mine has done a big leaflet drop and entered their domain with an ampersand as opposed to the word 'and'.
Is there anything I can do with htaccess/dns/whatever to redirect the incorrect url's to the correct url? I am aware ampersands cannot be used in domain names, however the client wasn't.
calkie_f — 2009-08-04T10:20:12-04:00 — #2
If it's www.something&something.com there's not a lot technically you can do -- the DNS request won't get anywhere near to what you can control (ie, the real domain's DNS entries).
If the & sign was in the host part (www) then you might have a fighting chance of using a * A record or something. If the & is in the path part of the URL then it should be do-able with htaccess.
andyrossy — 2009-08-04T15:59:13-04:00 — #3
Hi, thank you. No i'm afraid it's in the www.something&something.com part. From my knowledge I didn't think anything could be done, but i've never come across this problem so thought i'd ask. Thanks for your reply.
dklynn — 2009-08-05T08:12:33-04:00 — #4
That's "geek-speak" for you can't do that as "&" is an illegal character.
manpasand — 2009-08-05T12:39:09-04:00 — #5
I don't think it is technically incorrect since & treated as
felgall — 2009-08-05T15:45:04-04:00 — #6
not by domain name servers.
Invalid characters such as & in the actual domain name are going to get rejected by the first domain name server that sees them and never get close to any web hosting.
dklynn — 2009-08-05T18:24:35-04:00 — #7
^ what felgall says!
siberforum — 2009-08-06T02:17:06-04:00 — #8
I suppose you can use that in the site title &&& but in the domain name you must use "and"
The brigjt example is 1&1
manpasand — 2009-08-06T03:11:45-04:00 — #9
Yes, I agree.
linkin99 — 2009-08-18T09:14:58-04:00 — #10
Yes, it is an invalid character. Your only real hope is that people understand that it's a mistake and try typing out the "and" instead of the "&".