• Resolved creativepublishing

    (@creativepublishing)


    Hello!

    I just installed a fresh install of WordPress and activated the network/multisite feature.

    I had no problem editing the .htaccess and wp-config.php file as I am reasonably competent in programming. The only deviation from the Network tutorial was that WordPress changed one htaccess rule, adding in my servers path.

    Creation of the first sub-blog went fine, but when trying to access the admin panel for the new blog I go into an infinite redirect loop. The blog itself loads fine, although with no formatting, I assume because I haven’t enabled any themes.

    The url is http://www.hostingserversdedicated.com/test/

    Any help would be greatly appreciated.

Viewing 15 replies - 16 through 30 (of 56 total)
  • Thread Starter creativepublishing

    (@creativepublishing)

    The htaccess file is in the root directory of your wordpress install. It is a hidden system file “.htaccess” so you might not be able to see in the dashboard. You might need to use an ftp program such as WinSCP.

    Hello, after reading numerous threads and trying a number of ‘fixes’ I stumbled upon this thread and was hopeful…

    Installed the ‘boiler plate’ code for .htaccess (my .htaccess appears in its entirety below. After adding the ‘boiler plate’ still had the same issue – unable to access admin page on sub-blogs. This is a new install with no plugins used.

    Your assistance is greatly appreciated!

    # 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

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    # uploaded ?les
    RewriteRule ^([_0-9a-zA-Z-]+/)??les/(.+) wp-includes/ms-?les.php??le=$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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Thread Starter creativepublishing

    (@creativepublishing)

    Okay,

    An Htaccess file should only have one “RewriteEngine On” This essentially turns of Apache’s ModRewrite.

    What you did is add the boilerplate instead of replacing the old code with the new code. You essentially have two htaccess files in once there. Make a backup and then delete the line between #BEGIN WordPress and #END WordPress – then let me know how it goes for you.

    Ah thank you so much! Glad I ‘gave up’ when I did and pushed it aside for awhile. When I removed the ‘dupe’ code it indeed did work!

    Thank you, I should have seen, or thought of that but admittedly I am a ‘nube’ in .htaccess! Thank you for your assistance and input for that did indeed resolve the issue!

    Now if someone can direct me how to change this post to resolved, it would be much appreciated!

    Thank you,

    RevKev

    Thread Starter creativepublishing

    (@creativepublishing)

    Your welcome πŸ™‚ No idea, I am a WordPress “noob” lol.

    This is amazing. Spent multiple days looking for this πŸ™‚ I can’t stress how awesome you are for posting this!!!!!!!!

    This is why I love WordPress!

    @creativepublishing thank you so much,

    perfect – worked for me – after I removed the other set of rewrite rules I had above the boilerplate code!

    Thank You!
    It took me 2 whole days to find this solution.

    Shouldn’t they fix this in the in network install instructions?

    Thank you SO much creativepublishing!!! I had already spent hours trying to get this to work and I think you just saved me days more of heartache.

    I replaced the code in the htaccess and it just worked like that!

    Thread Starter creativepublishing

    (@creativepublishing)

    To everyone:

    I am so happy I was able to help you guys. Best of luck in your ventures πŸ™‚

    Hi,I’ve the same problem as creativepublishing in his first posts. Dashboard from the first (subfolder) site noch reachable (looperror), site itself is reachable, but without any formating.

    I tried for weeks to edit anything – with no success. I am not familiar with .htaccess, but I changed it into:

    RewriteEngine On
    RewriteBase /wordpress
    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]

    My blogsite (before I installes multisite was in /wordpress. I tried already to change the line in the .htacess into “/”, but afterwards nothing worked anymore. What is wrong with my configuration. Help is REALLY REALLY appreciated. (The first blog – created without multisite works still fine …)

    Thread Starter creativepublishing

    (@creativepublishing)

    It sounds to me like the issue has to do with your initial install into the /wordpress folder. This probably won’t work, but try changing the second line to:
    RewriteBase /wordpress/
    OR this:
    RewriteBase /

    All I did was add a slash after the folder name. The second one might work if the htaccess file in in “/wordpress”. You should only need to rewrite base to say “/wordpress/” IF the htaccess is at “/” and the wordpress install is at “/wordpress/”. If BOTH the htaccess file and install are at “/wordpress/”, I don’t believe you would need it.

    A few questions.
    What folder is the htaccess file in? Is it in the root folder “/” or is it in the wordpress folder “/wordpress” ?

    Have you tried the boiler plate code I listed above EXACTLY as it is? Without changing the rewrite base?

    Good luck.

    Hello,

    I’ve got the same problem, and I’ve tried using the boiler plate code that’s shown in the second post, EXACTLY, but it failed. Here’s my situation…

    I have my WordPress instance setup for Multisite on aaa.com. aaa.com works perfectly fine but when I create another WordPress site on aaa.com/bbb, that’s where the problem is. aaa.com/bbb works partially, with the content, but no proper theme. I tried aaa.com/wp-admin, and that’s where the redirect loop issue came up.

    This is what I have BEFORE trying the boiler plate code in the second post. What should I edit?

    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]
    RewriteCond %{HTTP_HOST} ^aaa\-my\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.aaa\-my\.com$
    RewriteRule ^/?$ "http\:\/\/aaa\.my" [R=301,L]

    Thanks for the help!

    I had the same problem using a subdirectory. I believe to fix your problem you need to change line 2 from this:
    RewriteBase /
    To this:
    RewriteBase /bbb/

Viewing 15 replies - 16 through 30 (of 56 total)
  • The topic ‘Fresh Install, subfolder multisite, infinite redirect loop sub-blog login’ is closed to new replies.