Home Forum
2012-02-07
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
Benvenuto, Ospite
Nome Utente Password: Ricordami

Redirection from domain to page
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirection from domain to page

Redirection from domain to page 2 Anni, 5 Mesi fa #400

  • corblimey
  • Offline
  • Fresh Boarder
  • Messaggi: 2
Hi

I have two domain names pointing to the same joomla website.

I want my main domain name (lets call it www.main.com) to work as normal but if a user enters the other domain (call it www.other.com) I want it to redirect to a joomla section www.main.com/other

How can I do this?

Thanks

Re:Redirection from domain to page 2 Anni, 5 Mesi fa #402

  • admin
  • Offline
  • Administrator
  • Messaggi: 1326
Ok,
so you want this redirect:

www.other.com => www.main.com/other

I need to know when you now call the first URL, who send the response' In other words, I need to know how you have configured the domains (e.g. virtualhost directive).

Thanks,
Luigi
Ultima modifica: 2 Anni, 5 Mesi fa Da admin.

Re:Redirection from domain to page 2 Anni, 5 Mesi fa #403

  • corblimey
  • Offline
  • Fresh Boarder
  • Messaggi: 2
Yes, that is the redirection I require.

Both domains resolve to the same IP and in my cpanel they are both added as parked domains.

Re:Redirection from domain to page 2 Anni, 5 Mesi fa #404

  • admin
  • Offline
  • Administrator
  • Messaggi: 1326
So if this is the case, you can't use just ReDJ to get the redirection.

This is because ReDJ works on server REQUEST_URI variable, which doesn't include the domain part...

The best solution you can get is to configure two virtual domain on apache server, both of kind "name based", configuring the alias (if you want to stay on other.com) OR the redirect (if you want to work on main.com) on the second one.

Luigi
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.42 secondi
News
Cerca con Google
Chi è online
 67 visitatori e 1 utente online
Pubblicità