Title: /wordpress/ in localhost domain path
Last modified: January 14, 2019

---

# /wordpress/ in localhost domain path

 *  Resolved [Frank Spade](https://wordpress.org/support/users/spade/)
 * (@spade)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-in-localhost-domain-path/)
 * Sorry the link to the page I need help with is on my local computer under xampp
   and bitnami wordpress.
 * My hosts file contains this:
    127.0.0.1 mysite.me
 * and httpd-vhosts.conf contains this:
    <VirtualHost *:80> ServerName mysite.me
   ServerAlias [http://www.mysite.me](http://www.mysite.me) DocumentRoot “C:/xampp/
   apps/wordpress/htdocs”
 *  Include “C:/xampp/apps/wordpress/conf/httpd-app.conf”
    </VirtualHost>
 * When I enter the local domain name in a browser, mysite.me changes to mysite.
   me/wordpress/ where I see the frontend of my wordpress installation. This doesn’t
   make sense to me, since the root of WordPress is at htdocs
 * How can I get rid of /wordpress/ in the URL?
    -  This topic was modified 7 years, 4 months ago by [Frank Spade](https://wordpress.org/support/users/spade/).
    -  This topic was modified 7 years, 4 months ago by [Frank Spade](https://wordpress.org/support/users/spade/).
    -  This topic was modified 7 years, 4 months ago by [Frank Spade](https://wordpress.org/support/users/spade/).
    -  This topic was modified 7 years, 4 months ago by [Frank Spade](https://wordpress.org/support/users/spade/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-in-localhost-domain-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [Frank Spade](https://wordpress.org/support/users/spade/)
 * (@spade)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-in-localhost-domain-path/#post-11084968)
 * Sorry, I figured it out myself:
    In wp-config.php I removed wordpress from the
   path like this: define(‘WP_SITEURL’, ‘[http://&#8217](http://&#8217); . $_SERVER[‘
   HTTP_HOST’] . ‘/’); define(‘WP_HOME’, ‘[http://&#8217](http://&#8217); . $_SERVER[‘
   HTTP_HOST’] . ‘/’);

Viewing 1 replies (of 1 total)

The topic ‘/wordpress/ in localhost domain path’ is closed to new replies.

## Tags

 * [" Virtual host"](https://wordpress.org/support/topic-tag/virtual-host/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 1 reply
 * 1 participant
 * Last reply from: [Frank Spade](https://wordpress.org/support/users/spade/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-in-localhost-domain-path/#post-11084968)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
