Localhost vs. Website URL (4 posts)

  1. bob211
    Posted 4 years ago #

    On Mac OSX, I successfully installed wordpress in /~username/Sites/wordpress

    The problem is that when I go to http://localhost/wordpress/ the wordpress page looks different than the page at http://username-imac.home/~username/wordpress/

    Furthermore, if I go to URL http://username-imac.home/~username/wordpress/wp-admin, it redirects to http://localhost/wordpress/wp-login

    Through the wordpress admin dashboard, I edited the header.php file, and the changes appear at http://localhost/wordpress/

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    And what urls are entered in Settings -> General?

  3. bob211
    Posted 4 years ago #

    Settings - General has both WordPress URL and Site URL as "http://localhost/wordpress"

    What I would like to know is where does WordPress get the theme files from that are showing up at the page with URL ../username-imac.home/~username/wordpress/ ?

    As far I can tell, there is only one wordpress installation on this machine, so why would the theme be different at localhost/wordpress than at /~username/wordpress ?

    Also, when I edit files from the Admin Site Editor, is wordpress writing to physical files, or storing in the database? If I log out of the Admin Site, and log back in , the changes are in the Editor, but not in the files on the machine.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    You cannot use localhost for your site urls and then expect the site to look the same using a completely different url.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.