Customer Support

  1. Support
  2. I have installed WordPress and my site only works on /wordpress and not on www.mydomain.com
  1. Home
  2. WordPress
  3. I have installed WordPress and my site only works on /wordpress and not on www.mydomain.com

I have installed WordPress and my site only works on /wordpress and not on www.mydomain.com

WordPress is designed to have its files in a different folder than your site's main folder. This means you don't need to reinstall WordPress or make changes to its database.

  1. The first step is to change the URLs from the WordPress admin Settings

General (Settings >> General) the website URL (Site address -URL) so that it looks like this:

WordPress Address URL http://www.mydomain.com/wordpress
Site Address URL http://www.yourdomain.com

  1. The second step is to copy (copy, NOT move) the .htaccess and index.php file from the /wordpress folder to the root of your hosting account.

This can be done via FTP or the File Manager in your Plesk Panel.

  1. Change the index.php file

Then you should change the following line of code in the index.php file you just copied to the root of your domain:

require('./wp-blog-header.php') change it to require('./wordpress/wp-blog-header.php')

  1. Save your permalinks
  2. Finally, to make sure your .htaccess is working with the correct WordPress settings you will save your permalinks settings again (Settings >> Permalinks).

Attention: In version 4.1.1 the .htaccess file is not created automatically and you should create it yourself through your Plesk, in your root folder: New >> Create New File >> .htaccess and put the following code in there

# BEGIN WordPress  RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond%{REQUEST_FILENAME}!-f RewriteCond%{REQUEST_FILENAME}!-d RewriteRule . /index.php [L]  # END WordPress

You haven't found what you are looking for?

Contact our experts, they will be happy to help!

Contact us