Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

htaccess help

PaullasPaullas is verified member.

Acorn Moderator
Nominet Member
Nominet Registrar
Hosting Provider
Domain Marketplace
Parking Service
Joined
Jul 13, 2004
Posts
5,868
Reaction score
400
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