Schritt 1) After Installing the wordpress in root folder, move EVERYTHING from root folder into subdirectory.
Schritt 1 Erklärung? Meine WP Installation liegt in /var/www/html/wordpress wo muss ich diese nun hinverschieben?
1) Was hast Du auf dem Server als Root-Verzeichnis konfiguriert?
2) Wenn /var/www/html/ das Root-Verzeichnis ist, wäre /wordpress ein Unterverzeichnis. Dann müsstest Du Installation nicht verschieben.
3) Kannst Du WordPress im Verzeichnis /var/www/html/wordpress aufrufen, also unter meinedomain.de/wordpress?
4) Wenn Du WordPress im Verzeichnis /var/www/html/wordpress aufrufen kannst und /var/www/html als Root-Verzeichnis konfiguriert ist, kannst Du eine Datei index.php mit folgendem Inhalt dort erstellen beziehungsweise dorthin laden:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
Alles anzeigen
5) Trage in Deiner WordPress-Installation unter "Einstellungen" > "Allgemein" folgendes ein:
WordPress-Adresse (URL): http://meinedomain.de/wordpress (beziehungsweise https://meinedomain.de/wordpress)
Website-Adresse: http://meinedomain.de (beziehungsweise https://meinedomain.de)
6) Speichere die Permalinks.
Das wird +/- genau so im Codex als 2. Methode beschrieben.