php - Multi-domain routing/redirecting -


i have 6 domain names. lets say:

www.abc.com www.abc1.com www.abc2.com www.abc3.com www.abc4.com www.abc5.com 

but have 1 php hosting www.abc.com redirected pages www.abc.com

how can detect domain name visitor came from?

you can use

$_server['http_referer'] 

from doc:

'http_referer' address of page (if any) referred user agent current page. set user agent. not user agents set this, , provide ability modify http_referer feature. in short, cannot trusted


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -