Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Reply To: How to install WP to subfolder while homepage gets redirected

Discussion in 'Misc WordPress Requests' started by dave517, Mar 22, 2018.

  1. dave517

    Guest

    Reply To: How to install WP to subfolder while homepage gets redirected, by dave517

    Thanks for being really helpful. I tried different versions of htaccess and it seems like I managed to solve the issue. It is working for now at least. Hopefully, I won’t find any errors.
    I will copy my htaccess files if somebody had the same issue.

    My root htaccess
    RedirectMatch 301 ^/$ https://www.wheretoredirect.com

    My subfolder htaccess


    # 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


    Probably the issue was with the previous commands in the htaccess files I had. So I had to play around a little to find this solution (which now seems really easy and straightforward).

    Thanks again for your help Michael! I wouldn’t have done it without you!

    Reply To: How to install WP to subfolder while homepage gets redirected
     
    #1

Share This Page

Monarch Social Sharing Plugin