gordieschmitt
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Is WP 3.6 bugged on Multisite?I had the same problem with a new WP v3.6 multisite installs. I finally did basically what Carlo Rizzante did only, I copied my .htaccess file from a v3.n(installed a year ago) and used it for my v3.6 install and it seems to be working fine now. The 3.6 .htaccess code was not properly handling the sub-directory site paths to various css and js files which obviously causes problems.
So, I can attest that the solution Carlo Rizzante used also worked for me, only it doesn’t seem necessary to install an earlier version of WP if you can just get a copy of the rewrite code from Carlo or here is what I used (replace the RewriteBase path):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymLinks
RewriteBase /engl191-fall2013/
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
Forum: Networking WordPress
In reply to: This webpage has a redirect loop ReloadI had similar problems with a new v3.6 install. Finally, I copied my .htaccess code from my earlier v3 multisite setup that I installed a year ago and it seems to work fine. The .htaccess code that the Network Setup told me to use did not work except for the top level site. I noticed that the rewrite code wasn’t correcting the paths to various css and js files for new sites, so they weren’t loading when the sub-directory sites were in the path.
The Network setup instructed me to insert this into the .htaccess (which didn’t work) file:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /engl191-fall2013/ RewriteRule ^index\.php$ - [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).*) var/www/html/wordpress/english/engl191-fall2013/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ var/www/html/wordpress/english/engl191-fall2013/$2 [L] RewriteRule . index.php [L] </IfModule> # END WordPressI finally replaced the .htaccess file with what I used in an earlier WP version 3 with this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteBase /engl191-fall2013/ 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 WordPressThis worked for me after several hours of searching and trying other suggestions. If anyone notices something that I should change, please let me know. I seem to remember having this happen a year ago where the .htaccess code was incorrect and I found what someone else had used. If this is the case, it sure would be nice if the WordPress Network Setup was updated with code that actually works because I spent a lot of time trouble-shooting this.
I hope this is useful to others.