• 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 https://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 5 years, 10 months ago by Frank Spade.
    • This topic was modified 5 years, 10 months ago by Frank Spade.
    • This topic was modified 5 years, 10 months ago by Frank Spade.
    • This topic was modified 5 years, 10 months ago by Frank Spade.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Frank Spade

    (@spade)

    Sorry, I figured it out myself:
    In wp-config.php I removed wordpress from the path like this:
    define(‘WP_SITEURL’, ‘https://&#8217; . $_SERVER[‘HTTP_HOST’] . ‘/’);
    define(‘WP_HOME’, ‘https://&#8217; . $_SERVER[‘HTTP_HOST’] . ‘/’);

Viewing 1 replies (of 1 total)
  • The topic ‘/wordpress/ in localhost domain path’ is closed to new replies.