Help - Search - Members - Calendar
Full Version: Embedding Wordpress
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
macdrew33
Hi, I installed wordpress on my mac, running mamp, to design locally and have a theme developed to go with a traditional html website I also made. But now I am trying to put the site live using my mac as the host. I can link to the site by changing the 'localhost' in the address to my IP address but when I click on any of the links in the blog (comments, links within the sidebar widgets, etc) it searches for http://localhost:8888/****

Does anyone know where/how I can change it to search for my site name instead of localhost?

In wp-config.php I found where it defines ABSPATH, but even if this is the right spot, the change to the coding is beyond me.

Thanks in advance,
Malcolm

Jacob
Leave it as localhost and upload to your web hosting account. You will just need to re-configure database settings.
macdrew33
QUOTE(NaRzY @ Sep 13 2009, 11:47 AM) *
Leave it as localhost and upload to your web hosting account. You will just need to re-configure database settings.


Maybe there's more to hosting that I don't understand, but I'm just trying to host it myself in my mac mini's Sites folder. With websharing turned on it gives an IP address which can be connected to online. The website works fine and is accessible over the internet, but the links contained in the wordpress blog (like those from the comments section, and the sidebar widgets) cause the browser to search for localhost when clicked. If a user manually replaces 'localhost' with my IP address (in the browsers address field) , the user can get access to the proper pages.

What I'm wondering is how to change these links contained somewhere in the wordpress php files to include my IP address instead of 'localhost'. If they were html files, I could just go in and change the coding of the links but with the php files and all the get_ functions I have no idea how to change the links.

Thanks for the response, maybe the answer is in changing the database settings even though I'm hosting it myself. Is there a way to do that and reflect the IP address so that users can access the database through it?

Jacob
Change "localhost" to that IP address and it should all work fine.
macdrew33
Thanks, you're right. I just didn't know where to make the change. Now I do! I had been sifting through the php files in text editor to no avail (because that was what I was used to doing when I embedded the wordpress blog into my website design) but even though an experienced php used could have pulled that off, I couldn't find where or how to change the localhost.

The fix was a simple one, low and behold wordpress has a very easy way to change localhost in the general settings menu in the wordpress admin interface. Sheesh, who knew?

Thanks for you help
lawny
you need to change the url in the wordpress database
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.