brohjoe
brohjoe

Reputation: 932

prevent auto adding port to the url in wordpress

I FTP'd my local Wordpress installation to a HostMonster.

I've created a subdomain called 'blog' for the installation on HostMonster.

For some reason, when I enter {website_url}/blog, the site goes to {website_url}:8080/blog.

It adds the localhost port number 8080 (which is my wampserver localhost address) to the url and does not display the web-based blog.

I did some research and modified the 'hosts' file in the System32/Drivers/ect folder to add the IP address of the website to no avail.

I'm still getting the same result...no webpage displayed, 404 city.

Does anyone know what the issues are here?

Upvotes: 2

Views: 3102

Answers (2)

hutchbat
hutchbat

Reputation: 796

Instructions to change WordPress URL by Wordpress.org

Changing The Site URL « WordPress Codex

Upvotes: 1

Alfred Huang
Alfred Huang

Reputation: 18235

Set your siteurl and home options to remove the :8080 part and have a try again.

Check the options in the admin panel:

Settings -> General -> WordPress Address (URL) & Site Address (URL)

Or you can change the wp_options table in mysql, change the field siteurl and home

Upvotes: 0

Related Questions