Is there any way I can develop a site localy, without worrying about changing the URLs when it comes to uploading to a web server?
Sometimes I run into problems where some scripts require absolute paths to other scripts, and then I have to go through and change them all once I'm ready to upload. It's slow and tedious.
Surely there must be some kind of htaccess-like control for telling the browser that should be shown as
www.domain.com
, ignoring 'localhost'.
Or some kind of a switch to change the name of 'localhost' to the actual project domain I wish to work on, at any one time.
I'm using XAMPP and I've tried searching their Apache Friends forum for some answers, but I've had no luck.
Sometimes I run into problems where some scripts require absolute paths to other scripts, and then I have to go through and change them all once I'm ready to upload. It's slow and tedious.
Surely there must be some kind of htaccess-like control for telling the browser that should be shown as
Website Domain Names, Online Stores & Hosting
Finding the perfect website domain is as easy as 1-2-3. Buy a domain name, build and host a website, and enjoy our professional online marketing tools.
Or some kind of a switch to change the name of 'localhost' to the actual project domain I wish to work on, at any one time.
I'm using XAMPP and I've tried searching their Apache Friends forum for some answers, but I've had no luck.