Title: arhak's Replies | WordPress.org

---

# arhak

  [  ](https://wordpress.org/support/users/arhak/)

 *   [Profile](https://wordpress.org/support/users/arhak/)
 *   [Topics Started](https://wordpress.org/support/users/arhak/topics/)
 *   [Replies Created](https://wordpress.org/support/users/arhak/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/arhak/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/arhak/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/arhak/engagements/)
 *   [Favorites](https://wordpress.org/support/users/arhak/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with virtual host site in Apache](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/)
 *  [arhak](https://wordpress.org/support/users/arhak/)
 * (@arhak)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/#post-6038618)
 * PS: mind your .htaccess as well
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with virtual host site in Apache](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/)
 *  [arhak](https://wordpress.org/support/users/arhak/)
 * (@arhak)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/#post-6038617)
 * PS: mind your .htaccess as well
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with virtual host site in Apache](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/)
 *  [arhak](https://wordpress.org/support/users/arhak/)
 * (@arhak)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-virtual-host-site-in-apache/#post-6038616)
 * your DB is ok
 * your problem is that WP expects to be at localhost/wordpress
    when you access
   it by its VHost DNS or by its IP it breaks styles and JavaScripts, try accessing
   it by localhost and you’ll see
 * then, you must decide how would you prefer to access it, and if different from
   localhost (which should be the current one working) then you should read [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 * if your solution isn’t there, then I recommend you to consider investigating 
   the following (which would not go for the VHost unless you also use a subdirectory
   there)
 * The following goes in the wp-config.php, near the end of it
    and intends to make
   the site available either by its IP (either IP it might be reached at) as well
   as localhost, or any DNS/VirtualHost, as long as it resides under the same directory(
   root or subdirectory) for all of them
 *     ```
       define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/wordpress');
       define('WP_HOME', WP_SITEURL);
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)