• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Default site for wordpress installation

Momo138

New Pleskian
Hi,

I'm sorry if this question has been asked but I couldnt find an answer to it....

I just added a new domain in Plesk and then went on to install wordpress.

The WP installation is in .com/wordpress/

How do I get my website to point to this folder as a default?

I cannot change the document root udner hosting settings because it says I have apps installed.

Help much appreciated

Thanks!!
 
Hi,

copied from https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

Using a pre-existing subdirectory install
If you already have WordPress installed in its own folder (e.g., http://example.com/wordpress), then the steps are as follows:

  1. Go to the General panel.
  2. In the box for Site address (URL): change the address to the root directory's URL. Example: http://example.com
  3. Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
  4. Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the root directory of your site—the latter is probably named something like www or public_html. The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you'll have a web.config rather than a .htaccess file in your WordPress directory.
  5. Edit your root directory's index.php.
    1. Open your root directory's index.php file in a text editor
    2. Change the line that says:
      require( dirname( __FILE__ ) . '/wp-blog-header.php' );
      to the following, using your directory name for the WordPress core files:
      require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
    3. Save the file.
  6. Login to your site (if you aren't still already). The URL should still be http://example.com/wordpress/wp-admin/
  7. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)
Since the site is not working for some of these steps, it is best to make this change at a time of low activity, e.g., the middle of the night.

Cheers,
Tom
 
Back
Top