• Resolved iAndrew

    (@iandrew)


    I have a website gb.idsrealestate.com that is not displaying the CSS properly. The website is a sub domain website with a subfolder (wp) WordPress installation. I am trying to display the website properly.

    I tried using the code below but am not sure how to properly implement the correct variables.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
    RedirectMatch 301 ^/subfolder/(.*)$ https://subdomain.example.com/$1

    Site: gb.idsrealestate.com
    Sub Folder: /wp/ –> WordPress installation files location

    Many thanks in advance!

Viewing 1 replies (of 1 total)
  • Thread Starter iAndrew

    (@iandrew)

    In case anybody else comes across the issue. Here are the steps I took to resolve the issue.

    The htaccess information provided in my first comment needed to be removed and inputted with the following data:

    # 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

    The file also needed to be moved from the root to the subfolder. This task is complete.

    From here I went to phpMyAdmin – wp_options (may be named differently) – option_name siteurl and home. I added the subfolder to both the siteurl and home and closed with a forward slash (/). Once I saved the updated option_name records the site rendered, all web pages were resolved, and I was able to access the backend.

Viewing 1 replies (of 1 total)
  • The topic ‘Subdomain & Subfolder WordPress Installation’ is closed to new replies.