I’ve an internet site, as an instance www.instance.com.
It has a number of subdomains. Every subdomain factors to a subfolder of my host.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www.instance.com)?$
RewriteCond %{REQUEST_URI} !^/www/
RewriteRule ^(.*) /www/$1 [NC,L,NS]
RewriteCond %{HTTP_HOST} ^(?:datas.instance.com)?$
RewriteCond %{REQUEST_URI} !^/datas/
RewriteRule ^(.*) /datas/$1 [NC,L,NS]
So you may see that the www.instance.com factors to the /www subfolder, and that datas.instance.com factors to the /datas subfolder.
I’ve a WordPress set up put in in datas.instance.com/wordpress
(subdirectory setup).
siteurl
choice ishttp://datas.instance.com/wordpress
homeurl
choice ishttp://datas.instance.com
When I attempt to log in, it does not work, it at all times loops to the wordpress/wp-login.php
web page.
Additionally, I seen WordPress that the ?redirect_to
parameter just isn’t appropriate :
http://datas.instance.com/wordpress/wp-login.php?redirect_to=httppercent3Apercent2Fpercent2Fdatas.instance.compercent2Fdataspercent2Fwordpresspercent2Fwp-adminpercent2F&reauth=1
as an alternative of
http://datas.instance.com/wordpress/wp-login.php?redirect_to=httppercent3Apercent2Fpercent2Fdatas.instance.compercent2Fwordpresspercent2Fwp-adminpercent2F&reauth=1
So, there’s an additional dataspercent2F
worth that shouldn’t be there : I suppose that is associated to my .htaccess redirections.
What goes flawed right here and the way may I repair this ?
Thanks !