Multiple Website Development Locally
-
Hi,
I’m pretty new to wordpress as I’ve always written websites from scratch.
It’s impressive – no doubt about it, but I’m struggling with one aspect of it – local links!
I did a site for a client on my local machine in a xampp subfolder. Obviously all the links where localhost/subfolder. On transferring the website over to the clients machine (who was also to host it locally), we found that we needed to move the site to the xampp root directory to prevent people having to type in the domain and subfolder address (ie. http://www.domainname.com/subfolder). This proved to mess things up a treat. I managed to update all of the links using phpMyAdmin, and a WordPress plugin so it could find all of the images and the css file(s). The site works online now, but my client cannot access the site due to it being local.
I’m basically wanting to know the easiest way to develope multiple sites (using sub folders in xampp directory) so i can use the actual address instead of localhost, and then having to change all the links when going live. I looked into using hosts file (127.0.0.1 http://www.domainname.com) but that just points straight to the xampp root directory and displays the xampp webpage, and I don’t think you can add paths after the 127.0.0.1 IP. I also looked at vhosts using the C:xamppapacheconfextrahttpd-vhosts.conf file. But that just broke Apache altogether – wouldn’t start!
What is the recommended way of doing this please, so i can do a simple transfer without having to update links, and so that the client can view it locally and correctly?
Any help much appreciated. Thank you.
-
Our form is restricted to WordPress.com websites. You’ll want to post your question to the WordPress.org forum. There are lots of great tips for self-hosted WordPress websites over there.
-
Ok, thanks. Sorry, I’m still finding some of the general wordpress structure quite confusing. I’ve just created a blog I don’t need, to get onto here lol.
- The topic ‘Multiple Website Development Locally’ is closed to new replies.