When I am typing my domain name in the browser, it redirects to my server. Also, loads the page. But, in the browser, the domain name changes to the IP address of the server. I want it to show the domain name.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello team,
Even I am also facing the same issue with Magento, When I hit the domain name it directly redirects to IP address.
<VirtualHost XX.XX.XX.XX>
DocumentRoot “/var/www/html” #ServerName xyz.com/
RewriteEngine On RewriteCond %{HTTP_HOST} !^dl-magento.devdlt.com$ RewriteRule /.* https://xyz.com/ [R]
</VirtualHost>
Hello, If you would like to get support on this, you always need to provide information about your system. We can not see that from here, so what webserver are you using? How does your VHOST config look? What kind of site are you running?
If you’re using WP or any other CMS application, then probably you might have used IP address for the domain name while installing the application. That is why it is redirecting to IP address. To resolve the issue make changes in .config file and replace IP address with your domain name.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.