• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

htaccess help

PaullasPaullas is verified member.

Acorn Moderator
Nominet Member
Nominet Registrar
Hosting Provider
Domain Marketplace
Parking Service
Joined
Jul 13, 2004
Posts
5,928
Reaction score
467
Hi

I am hoping someone can help. Is there a way to forward a domain to a specific page depending on the URL it cam from?.

I a diverting all my domains from a parking company to my main site but when they hit my main site i want it to display the page specific for that domain name.

Thank in advance

Paul
 
Ah thanks, is there a way to wild card it?

As if i have over 500 domains my htaccess will be massive :)
 
I wouldn't do it like this as you'd have to add each domain and a rule to your htaccess unless that's what you want to do.
I'd just have an index.php that captures everything and if you have redirected the domain the info will be in the $_SERVER['HTTP_REFERER'] variable. You can then strip it down to the domain and redirect accordingly.
 
Top Bottom