Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Huh… What’s in your .htaccess?

    And have you tried with plugins off and a different theme?

    Thread Starter cpolicastro

    (@cpolicastro)

    This is what the .htaccess file has:

    # Use PHP54 Single php.ini as default
    AddHandler application/x-httpd-php54s .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
    
    # 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>
    
    #RewriteEngine On
    #RewriteBase /
    #RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    #RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    #RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -d
    #RewriteRule ^ - [L]
    #RewriteRule . index.php [L]
    # END WordPress
    
    Redirect http://alabama.roofing-installers.com/ http://www.roofing-installers.com/alabama/

    I haven’t tried a different them since theres hundreds of pages that I would need to rearrange if I do so. The other reason is because I am using this them on other subfolders for this domain as well and they all work fine but this texas subfolder

    Thanks for the reply BTW. Any help would be awesome!

    Chris

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay, one, you did not REPLACE the htaccess, you added to it. And two you always put WP at the end 🙂 So your .htaccess should be this:

    # Use PHP54 Single php.ini as default
    AddHandler application/x-httpd-php54s .php
    
    # Redirects
    Redirect http://alabama.roofing-installers.com/ http://www.roofing-installers.com/alabama/
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    Any yes, you really need to try a different theme on the broken site.

    I haven’t tried a different them since theres hundreds of pages that I would need to rearrange if I do so.

    No, you don’t. Change theme. See what happens. Doesn’t alter the outcome? Change it BACK. No messing with pages.

    hey guys, i have the same problem as ” cpolicastro ” but i dont have an htaccess file i am on windows server so i can deal only with web.config file, im working on 2 websites on a shared ” Godaddy ” hosting account :
    I have :
    thefirstwebsite.com on the main root of the server
    ,thesecond.com and thethird.com is on the subfolders so actually i am working on thesecond.com so the frontpage is working but the other pages like – About – Contacts etc etc, redirecting me to thefirstwebsite.com and showing me 404 error, i tried to install the network multisite on thesecond. and still nothing its been more than a month that i have this issue please any help id be much appreciated

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    bigblue23 – Pleas make your own topic. Windows needs special help :/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HELP! My Multisite Subfolder Has Certain Pages Redirecting to Main Site 404 Page’ is closed to new replies.