Wordpress Multisite www non-www Page Redirect Failure -


my wordpress multisite setup without www. having issue whenever add www. i.e. www.domain.com/post-name/ redirect me domain.com.

i found out because removed /blog/ part of permalink structure in super admin section site. redirects working fine again.

however pages weren't. whenever accessed www.domain.com/page1 redirect domain.com

any solution this?

remove define('noblogredirect', 'http://www.domain.com'); wp-config file.

add in htaccess file right under rewriteengine on

rewritecond %{http_host} ^domain.com$ [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,l] 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -