Wordpress

Here you will find answers to the most common questions related to your Wordpress.
Here's how to get started with your domain name and webpage based on Wordpress (read more about Wordpress on [Wordpress.org] (https://wordpress.org)).

Installation of Wordpress
Preparation and setup of SSL / https
Forwarding from http to https with .htaccess
Update of Wordpress, plugins and themes
Delete modules, themes, and media that are not in use
Change the username from admin
PHP version
Install Wordpress Cache plugin:
Feilsøking av Wordpress

Installation of Wordpress

  1. You have a web host at https://hcp.stwcp.net/ as well as a newly registered or old domain name you now want to use and create a webpage.

  2. Make sure that the domain name has enabled webpage service based on Linux / Apache - follow the guide here

  3. You should now install Wordpress on your domain name - navigate to Domains and Website r, and select Application Installer

  4. Select Install New Application

  5. Fill out the domain name and click Content Management (CMS)

  6. Search for Wordpress and click Install

  7. Wordpress is now installed - this can take from a few seconds to minutes

  8. Important - Record User Name and Password - Click Close
  • If you do not get the details, please contact customer support so that we can provide you with a new login

  • Wordpress is now ready on your domain name.

  • To add text and pictures, go to http: // your domain name / wp-admin with username and password noted in step 8

  • More tutorials and help pages to use Wordpress are available at [Wordpress.org] (https://codex.wordpress.org/WordPress_Lessons)

1.For best performance, it is recommended to use PHP 7 with the latest version of Wordpress.
2.Use a caching plugin in Wordpress, for example. WP Super Cache.
3.Change the password of the admin user in Wordpress after initial login. Put a secure password in upper and lowercase letters, numbers and preferably symbols.
4.Resorts the use of plugins. Erase any plugins that are not used, and not only disable them.

Preparation and setup of SSL / https

  1. Click here for guidance to order and install SSL certificate

  2. The following code node may be placed in the wp-config.php file (preferably at the top of the file right after <? Php )

Support may be happy to assist with this change - send an email to kundeservice@servetheworld.net

// START HTTPS SUPPORT
if ($_SERVER['HTTP_X_PROTO'] != "https") {
header("HTTP/1.1 301 Moved Permanently");
$location = "https://" . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
header("Location: $location");
exit;
}

define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_PROTO'] == 'https') {
 $_SERVER['HTTPS']='on';
}

// END HTTPS SUPPORT

Forwarding from http to https with .htaccess

RewriteCond %{SERVER_PORT} 80   
RewriteCond %{HTTP:X-Proto} !https  
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Update of Wordpress, plugins and themes

  • Wordpress comes with regular updates of version, plugins and themes. Each update will not only offer new features, but also fix security issues and errors.

  • As a site owner, it is your responsibility to keep Wordpress, the theme and the plugins updated to the latest versions. If you do not, your site may become slow, unreliable and make you vulnerable to security threats.

Security and protection against attacks is a continuous process, not something you only do once

Delete modules, themes, and media that are not in use

Not sufficient to only deactivate

  • Not only uses unused plugins and templates space on their site but also poses greater security vulnerabilities on the site.

  • We recommend deleting plugins and templates that you do not use for performance.

  • The same applies to unused media.

  • Here you can, for example. Use Media Cleaner to get an overview of unused media on the Wordpress site.

  • If you choose to manually remove media, you can easily navigate to "Media" "Library" . Here you select the media you do not use and select "Delete permanently" from the drop-down menu.

Change the username from admin

We recommend that you change username from admin to something else, as well as password with:

  • At least one upper case letter
  • At least 8 characters
  • Combination of numbers
  • Possibly. characters and symbols

Here are some tips and tips about performance and speed for Wordpress sites.

PHP version

  • Internal testing with other external tests shows that PHP version 7.0 increases the speed of Wordpress sites and has the best response time.

  • It is said that response time is increased by 30-50% from PHP 5.x to 7.0.

_ NB! Make sure the plugin and theme support the current PHP version.

Internal tests with us gave the following results:

  • PHP version 5.3 - Response time: approx. 2.7 sec
  • PHP version 7.0 - Response time: approx. 0.5 sec

  • You change the PHP version in the control panel of https://hcp.stwcp.net/

[Click here for guidance for changing PHP version] (http://faq.servetheworld.net/en/webhosting/available/php-version#endre-php-version)

Install Wordpress Cache plugin:

  • Each time your webpage appears, Wordpress must run a process to find the required information, put it together, and then display it to the end user.

  • This process involves many steps, which can reduce the response time of your site when you have more people visiting your site at the same time.

  • Therefore, we recommend that Wordpress sites use the caching plugin. Caching can make the Wordpress site gets anywhere from 2x to 5x faster.

  • How it works: Instead of Wordpress going through the entire generation process each time, the caching plugin provides a copy of the page after the first load, and then serves the cached version to each subsequent user.

  • With installing WP super cache, the test site received the following results:

  • Before installing WP super cache: approx. 0.5 sec
  • After installing WP super cache: approx. 0.3 - 0.4 sec

Read more: Https://nb.wordpress.org/plugins/wp-super-cache/

Wordpress troubleshooting

Wordpress (Too many redirects / videresendingsloop) on https

Add the following code at the top ofwp-config.php

//https support
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_PROTO'] == 'https')
       $_SERVER['HTTPS']='on';