Installare WordPress in sottocartella

Cartella /wp/ contenente tutti i files del cms

Aggiungere nella cartella root del dominio il file index.php contenente:

<?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(‘./wp/wp-blog-header.php’);
?>

Inserire poi nell’.htaccess nella root del dominio:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Settare poi .htaccess della cartella /wp/ tramite salvataggio permalink da pannello wordpress.