How to Change localhost to a Domain Name in XAMPP on Windows

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

@TheNextCode You make awesome videos! This one helped me a lot. You should have over a million subscribers!

realstray
Автор

I have changed port 80 to 8080 and how could I add the port on configuration rather than url?

ethiotech
Автор

hi, thanks for the video.
I'm building a website for Local Area Network only, can it be accessed from LAN?

armandiskandarsyah
Автор

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?

joegonzalez
Автор

It was really helpful. But how can public see that.?

shakilmiah
Автор

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

ahmedbadawy
Автор

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

TimeLords
Автор

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.

stickster
Автор

how do I implement this on multiple websites - locally? how can I add the specific ports ?

wengkapre
Автор

Is this domain access any where in the world if your computer connecting to the internet

musabhaji
Автор

its work but the domain work only in our local computer any idea for working online?,

ydros
Автор

can i use this on my local area connection rather than typing the ip address?

ClevergunsYT
Автор

its work but the domain work only in our local computer

krishnak
Автор

it takes me to root directory (htdocs) folder. Solution? Did I make any mistake.

priyantgudhka
Автор

My problem i doing this but only for me can use this domain, if anyone try other vpn can't join :/ how can fix this?

wolfshadow
Автор

hi any idea how to fix mi pablic ip ant fix domainame to the xampp?for online mi sait?

ydros
Автор

Thanks Dude.. You helped me . U went for the easy way..

danyesc
Автор

My apache refuses to start after changing the httpd-vhosts file

naderelmor
Автор

Too bad that domain "ONLY" shows on the computer you have running xampp, hehehe, "old trick".

KadargoGaming
Автор

this shows, "internal server error" what should i do?
thanks

edjjanmacababbad