|
I have just set up the domain properly and everything is working well but when I tried to redirect non-www to www by adding the following lines to htaccess, it throws a 404. Not sure if it's a wp multisite or apache config? Using the bitnami wordpress multisite 3.3.2 aws ami stack.
|
|
I think you should remove the last '/' in the RewriteRule. Can you try with the following?
Didn't work either, now it's in a redirect loop. I'm wondering if it was the initial setup process that I mess up, as in: $ mysql -u root -p -e "USE bitnami_wordpress; UPDATE wp_options SET option_value='http://YOUR_DOMAIN/' WHERE option_name='siteurl' OR option_name='home';" I should have use www.YOUR_DOMAIN instead of just YOUR_DOMAIN?
(04 May '12, 12:40)
Laurent Ho
Yes, it may be the reason. You should configure wordpress with 'www' prefix too or it will redirect to the value you entered in the database. $ mysql -u root -p -e "USE bitnami_wordpress; UPDATE wp_options SET option_value='http://www.example.com/' WHERE option_name='siteurl' OR option_name='home';"
(04 May '12, 13:07)
Carlos Sánchez ♦♦
|