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 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/