CodeIgniter Forums
problem with domaine - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: problem with domaine (/showthread.php?tid=64278)



problem with domaine - Elfrancki - 02-03-2016

Hi everyone,

I have a website for a client working on codeigniter.

web site: www.abtours.be

dns lookup: http://dnslookup.fr/abtours.be

I think that the problem can come from the DNS, I don't manage dns, it's our client. I have give my ip adress and he didn't gave me the NS info.

I suspect that it's a simple redirection on the test serveru http://abtours.b-communication.be or do I have to change something in my folder / database ?

Thank you for your (futur) answer


RE: problem with domaine - Diederik - 02-03-2016

Both www.abtours.be and abtours.b-communication.be point to the same IP: 37.187.75.90.

Code:
$ curl -I www.abtours.be
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 03 Feb 2016 14:31:57 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: http://abtours.b-communication.be/

So your webserver or application is creating the redirect.


RE: problem with domaine - Elfrancki - 02-03-2016

Thank you for your answer.
My problème is that if I suspend abtours.b-communication.be, the website is desactivated. It don't take the other webspace "abtours.be".
Do I have to change something in CI ?


RE: problem with domaine - Diederik - 02-03-2016

I'm sorry but that is as far as my magic goes. I can only tell you what I 'see' as an outsider. I can't tell you how your server is configured...

Either domains are aliasses of eachother, then you can redirect from within your Codeigniter application. Or they are not aliasses and you have to look elsewhere (webfolder of domain A, nginx configuration etc)