Site icon Hip-Hop Website Design and Development

Single wordpress page redirecting to wrong port on localhost

I am running wordpress locally on a mac. I have it up and running at localhost:8888 and I am able to access everything including wp-admin, and all the site pages, except for the home page. When I go to localhost:8888/wordpress it redirects to localhost:443/wordpress and does not find anything.

I have set

define('WPSITEURL','http://localhost:8888/');
define('WPHOME','http://localhost:8888/');

in my wp-config.php file, and in wp-admin I have set this as the wordpress address and site address in the general settings. In MAMP I have set the nginx and apache ports to be both 8888 and I have confirmed in Mysql wp-options that the site and host url are localhost:8888/wordpress.

Any idea why one single page (homepage) is redirecting to the wrong port?