• Resolved essah77

    (@essah77)


    I have two WP installations on one domain and two folders.

    How to get rid of the WP installation folder > watercolorpainting.com/watercolor-painting-tutorials/ without moving the wordpress installation to the root domain?

    The .htaccess rewrite rule is the following:

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

    I want my links without the WP folder like this:

    watercolorpainting.com/for-beginners/

    not like this: watercolorpainting.com/watercolor-painting-tutorials/for-beginners/

    The solutions I found doesn´t fix my problem, because I have already an existing WP installation on the root with following .htaccess rewrite rules:

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

    Can someone help me? Thanks!

    https://wordpress.org/plugins/htaccess/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to get rid of the WordPress folder from URL without moving the files > .htac’ is closed to new replies.