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

Joined
Jul 13, 2004
Posts
5,852
Reaction score
387
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.
 

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom