Skip to content
Advertisement

i changed dns server name if i dont use https the homepage is redirected to old dns

I am a new to PHP and Apache server and i was asked to do few changes to DNS in the AWS Ec2 instance of a PHP application where i changed the config['base_url']= puredata.digitowork.com, after i made these changes when i use the url without https protocol, its redirecting to the old DNS, what are the changes i need to do to avoid this issue.

I am attaching a picture about what is happening when i enter the domain name in browser.

I am not able to understand why its redirecting.

Thanks in advance

Advertisement

Answer

It seems you have a redirection in Apache that is forcing https and your domain when accessing the server. I don’t know if you recently modified the Apache’s configuration but you can check if you have any RewriteRule in your server by running this command

sudo egrep -Ri RewriteRule /opt/bitnami/
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement