dimanche 1 mars 2015

301 Redirect Loop


I have wordpress site hosted on openshift say example.com. I am redirecting example.com to www.example.com (non www to www). I have created alias for www and non www version and updated my cname with app name.


I tried pointing non www cname record to www version and it was working except for homepage (same 301 redirect loop) so i reverted non www cname back to app url.


Now www version is serving but non www version is creating 301 redirect loop by redirecting to itself. My wordpress site url is www.example.com and i have not added any htaccess directives.


How can i properly redirect non www to www version.





Aucun commentaire:

Enregistrer un commentaire