Removing /wordpress from domain name

  • Unknown's avatar

    I tried to copy both the index.php and .htaccess file from within my wordpress directory to the root directory, after removing the /wordpress extension from my site address and altering the code within the index.php file from ‘/wp-blog-header.php’ to ‘/wordpress/wp-blog-header.php’. I uploaded both files to the root directory and got this error: There has been a critical error on this website. Please check your site admin email inbox for instructions.

    WP.com: Unknown
    Jetpack: Unknown
    Correct account: Unknown

    The blog I need help with is: (visible only to logged in users)

  • Hey @annebrent2015, the site isn’t hosted here with us, but it sounds like you’ve got a couple of issues compounded. I’d recommend getting a recent backup restored, or otherwise undoing your changes. Then use this info for changing your url:
    https://wordpress.org/support/article/changing-the-site-url/

    If you need more help with the free WordPress code, you’ll want to use these forums:
    https://wordpress.org/support/forums/

    Cheers!

  • The topic ‘Removing /wordpress from domain name’ is closed to new replies.