• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
domain alias with base_url

Supposed I install CI in site: subdomain.maindomain.com which I have base_url subdomain.maindomain.com
I also rent domain call www.otherdomain.com which is an alias for subdomain.maindomain.com.

When I go to www.otherdomain.com, It will open subdomain.maindomain.com. So how to keep base_url to www.otherdomain.com when
I use that domain for browsing?

I mean to make 2 domains looks as separate domain.

You might have to use cname record to achieve that.

You need to apply some PHP logic to be able to accept two urls in your base_url config.

Okay, thanks.

So I need to check 'HTTP_HOST' for this detection

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.