How to Change localhost to a Domain Name in XAMPP on Windows
How to Change localhost to a Domain Name in XAMPP on Windows
Hey Guys,
Every new comer web developer must have thought about Changing localhost to a Domain Name while working on websites locally.
Especially while working on WordPress websites. It becomes easy while moving website from local server to live server if we already have domain name in database as we want.
So, Here is easy way to do it.
Happy Coding 🙂
Thnx,
The Next Code
nope. doesn’t work
hi any idea how to fix mi pablic ip ant fix domainame to the xampp?for online mi sait?
it takes me to root directory (htdocs) folder. Solution? Did I make any mistake.
I followed the video and to be able to use the domain name but it did not work. Do i need to change any thing in the setting of Apache after finished all your steps I stopped and restarted Apache again from Xampp control panel
its work but the domain work only in our local computer
Thanks This Helped A LOT man It helped me develop my website which was not possible because of the file thing, now I can THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS
(UNREGISTERED) IN THE httpd-vhost
thanks 🙂
working only on my pc not working worldwide
Too bad that domain "ONLY" shows on the computer you have running xampp, hehehe, "old trick".
Can this be accessed in a network too?
Great tip bro. I might add that if you’re using mysql with your php code, don’t forget to change the login credentials to your new localhost pseudo name. I keep my login credentials in one file and then include for each php script that needs it.
its work but the domain work only in our local computer any idea for working online?,
Thank you for the nice video and it works. I can access http://www.abc.com from localhost but I can’t access my actual online http://www.abc.com from my web browser.Is there a solution?
helped a lot. thanks
Very useful tutorial. Keep going!
Great bro. But how we can take it online.
Thank you!.
hi and welcome to the next.. S I L E N C E
thank you lol
@TheNextCode You make awesome videos! This one helped me a lot. You should have over a million subscribers!
Thanks Dude.. You helped me . U went for the easy way..
this shows, "internal server error" what should i do?
thanks
Hi. Great video man. Can we do this with online? Like a hosted WP site, then we do CLI-Commands? I’ve seen a plugin but I’m hoping we can do it remotely?
i use apache but i don’t mess around with the settings and it makes everything work fine but if you mess around with them without knowing what your doing well your on your own because the green light which usually appear when apache and mysql is on might not work
Its work for me. Thank you so much
can i use this on my local area connection rather than typing the ip address?
it says not secure
My apache refuses to start after changing the httpd-vhosts file
Kya wampp server free our safe hai
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
I just found these. What can I do?
Is this accesible in local network?
thanks man
when i type my domain name it direct me to apache dashboard. pls help
Is this domain access any where in the world if your computer connecting to the internet
Thanks a bunch!
YOU ALMOST MADE ME LOSE MY FILES!!!!!!!
Thank You so much brother
hi, thanks for the video.
I’m building a website for Local Area Network only, can it be accessed from LAN?
Great video. Thanks a lot
Thank you so much for making this video, it works perfectly 😊
Imagine that I have a public IP, how to put online?
Thank you brother❤️❤️
Thank you, great video