UPDATE: I’ve got MAMP Pro. Should I simply set-up another virtual host on my local machine. If I created another virtual host, then I could put the wordpress files in its root. And when I upload to the production server, I wouldn’t have to make any changes. I could place the files in the production server’s root, as well. Would this plan work?
Thank you.
-Laxmidi
Hi,
I’ve got a simple question about using WordPress on my localhost. I’ve got MAMP on my localhost; and I put the WordPress files in a directory like so: htdocs/wordpress.
When I deploy WordPress to the production server, I want to put it in the root directory. (I want to ditch the wordpress directory).
Can I simply copy the files that are in the wordpress directory on my localhost and dump them in my production server’s root? Or will this screw-up settings and filepaths?
I’ve got a bunch of files in my localhost’s htdocs directory. I don’t want to confuse them with other projects. Otherwise, I’d mirror the set-up on both machines.
Sorry for such a basic questions. But, I’d rather get it set-up correctly so as to avoid problems down the road.
Thank you.
-Laxmidi
You can copy the whole directory structure to htdocs on your production host however you will need to change some URLs. Please follow this guide to change URLs directly in database.