php - Redirect loop in wordpress only in root directory -
i getting recirect loop error in wordpress site on root folder. here apache2 virtual host:
<virtualhost www.myhost.dev:80> <location /> redirectmatch ^/$ /site/ </location> <location /site> redirectmatch ^/site$ /site/ </location> <location /site/> proxypass http://sub.myhost.dev/site/ proxypassreverse http://sub.myhost.dev/site/ </location> </virtualhost> # default host <virtualhost myhost.dev:80> redirect permanent / http://www.myhost.dev/site/ </virtualhost>
site url , home set to: www.myhost.dev/site
sub.myhost.dev subdomain of myhost.dev
Comments
Post a Comment