redirect to homepage after manually configuring wordpress stack to multisite
-
Hi!
I have XAMPP installed and i use the bitnami wordpress stack (4.0 beta) to locally create and modify my sites.
I tried to enable multisite locally (manually) using the bitnami guide (http://bit.ly/1surNsB) but every-time i follow their instructions i end up with a permanent redirect to my website’s homepage (every link redirects to it) so i suppose i have a .htaccess problem. (i have tried this method at least 5 times and always get this problem or the infinite redirect loop while adding new sites to the network -the latter happens if i add the code to the .htaccess file instead of the htaccess.conf- file).
Since i’m not a .htaccess expert, i don’t have a clue where the error could be!
maybe you could give me a hand?? i’ve tried searching for my error everywhere (including this forum) but none of the fixes worked for me :/Now, let’s cut to the chase:
-i have wordpress installed on localhost/wordpress
-before the multisite, everything was fine, it worked as a charm.
-i pasted the code wordpress gave me in the htaccess.conf (as the bitnami guide instructed me) and then added the “include…” at the end of the http-app.conf filehere’s how my htaccess.conf file looks now:
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index.php$ [L]
# uploaded files
RewriteRule ^([_09azAZ]+/)? files/(.+) wpincludes/msfiles.php?file=$2 [L]
# add a trailing slash to /wpadmin
RewriteRule ^([_09azAZ]+/)? wpadmin$ $1wpadmin/[R=301,L]
RewriteCond %{REQUEST_FILENAME} f [OR]
RewriteCond %{REQUEST_FILENAME} d
RewriteRule ^ [L]
RewriteRule ^([_09azAZ]+/)?(wp(content|admin|includes).*) $2 [L]
RewriteRule ^([_09azAZ]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
Here’s what i added to the wp-config:
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/wordpress/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);define('WP_DEBUG', false);
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');Here’s how the http-app.conf looks like (i just added the “include” part the rest is untouched):
<Directory "C:/xampp/apps/wordpress/htdocs">
Options +MultiViews +FollowSymLinks
AllowOverride None<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index.php$ - [S=1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]</Directory>
Include "C:/xampp/apps/wordpress/conf/htaccess.conf"
Hope you’ll be able to help me! i’m freaking out here :(
- L'argomento ‘redirect to homepage after manually configuring wordpress stack to multisite’ è chiuso a nuove risposte.