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.
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.
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.
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.