• silverlight001

    (@titaniumconsulting)


    Hi Folks,

    Be grateful for some help.

    I have an existing site installed on the root folder and the .htacess looks like this:

    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^mainsite.com$
    RewriteRule ^(.*)$ http://www.mainsite.com/$1 [R=301,L]
    
    #RewriteCond %{HTTP_HOST} deadmin.mainsite.com
    #RewriteRule ^(.*)$ deadmin/$1 [L]
    
    #RewriteCond %{HTTP_HOST} de.mainsite.com
    #RewriteRule ^(.*)$ de/$1 [L]
    
    #RewriteCond %{HTTP_HOST} deadmin.thesportsboxoffice.de
    #RewriteRule ^(.*)$ deadmin/$1 [L]
    
    #RewriteCond %{HTTP_HOST} www.thesportsboxoffice.de
    #RewriteRule ^(.*)$ de/$1 [L]
    
    RewriteCond %{HTTP_HOST} ^admin.mainsite.com
    RewriteCond %{REQUEST_URI} !public_html/admin/
    RewriteRule ^(.*)$ public_html/admin/$1 [L]
    
    RewriteCond %{HTTP_HOST} mainsite.com
    RewriteCond %{REQUEST_URI} !public_html/frontend/
    RewriteRule ^(.*)$ public_html/frontend/$1 [L]

    I have WordPress installed in a subfolder blog e.g.

    mainsite.com/blog

    But the .htaccess for the mainsite.com in root won’t allow access to WordPress to enable me to install WordPress since it redirects me to a 404 error on the mainsite.

    So something needs to change on the .htaccess on mainsite

    I find .htacess confusing so would be grateful for any help,

    Thanks

Viewing 1 replies (of 1 total)
  • Not sure if you are still having issues but whenever I run across .htaccess files messing up the install of WordPress, I’ll backup the existing .htaccess file, then delete and then proceed through the WordPress install. Then once it’s installed, I’ll re-upload the .htaccess file and things usually will work at that point.

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess WordPress install in subdirectory’ is closed to new replies.