Issues when moving from server to MAMP

The :8888 is the port your local Apache server is listening on and isn’t actually part of the url.

To use your own custom domain name locally open up your host file sudo nano /etc/hosts

and add this line to the bottom

127.0.0.1 custom-domain.dev

Then add your domain to wp-config.php:

define( 'WP_HOME', 'http://custom-domain.dev' );  
define( 'WP_SITEURL', 'http://custom-domain.dev' );

Then you need to point the domain name in your Apache vhost to where your root directory is stored and change the port to 80. (You can do this using OSX’s built in Apache / PHP. WPCandy has a good detailed tutorial on how.

Your Vhost should look like this:

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#


<VirtualHost *:80>
DocumentRoot "/Users/your-name/Sites/blah"
ServerName custom-domain.dev
</VirtualHost>