Viewing 2 replies - 1 through 2 (of 2 total)
  • You can’t set the site URL properly on the wp-blog-header.php file.

    Read and follow this: https://ww.wp.xz.cn/support/article/giving-wordpress-its-own-directory/

    Thanks 🙂

    Thread Starter Gecky Heavy Hammer

    (@geckyheavyhammer)

    Hi Fahim, thank you for your message.
    I didn’t really understand.
    Everything is set (I guess…) right.
    The website is http://www.heavyhammer.it and the WordPress is in the ‘nuovo’ subdir ( http://www.heavyhammer.it/nuovo )

    This is the .htaccess in the root:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?heavyhammer.it$
    RewriteCond %{REQUEST_URI} !^/nuovo/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /nuovo/$1
    RewriteCond %{HTTP_HOST} ^(www.)?heavyhammer.it$
    RewriteRule ^(/)?$ nuovo/index.php [L]
    </IfModule>

    This is the .htaccess in the ‘nuovo’ subdir (where WordPress is installed):

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

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘login page loop’ is closed to new replies.