formulate Posted June 30, 2017 Share Posted June 30, 2017 In the admin template's URL settings I forced HTTPS. However, I do not actually have an SSL cert in place and now I can no longer access the admin (shared hosting issue, it redirects me to some other site). How do I undo this? I've searched everywhere in the database and files for the setting and can't find it. I also tried forcing http in the .htaccess file and that didn't work. I found the template settings in the database, but couldn't see anything I could change for the URL setting. Help! Link to comment Share on other sites More sharing options...
szabesz Posted June 30, 2017 Share Posted June 30, 2017 Hi, this is the diff which should help (before and after): -INSERT INTO `templates` VALUES (2,'admin',2,8,0,'{\"useRoles\":1,\"parentTemplates\":[2],\"allowPageNum\":1,\"redirectLogin\":23,\"slashUrls\":1,\"noGlobal\":1,\"compile\":3,\"modified\":1474288506,\"ns\":\"ProcessWire\"}'); +INSERT INTO `templates` VALUES (2,'admin',2,8,0,'{\"useRoles\":1,\"parentTemplates\":[2],\"allowPageNum\":1,\"redirectLogin\":23,\"https\":1,\"slashUrls\":1,\"noGlobal\":1,\"compile\":3,\"modified\":1498842443,\"ns\":\"ProcessWire\"}'); 3 Link to comment Share on other sites More sharing options...
Robin S Posted June 30, 2017 Share Posted June 30, 2017 See the "https" property of the Template class: https://processwire.com/api/ref/template/ $t = $templates->get("name=admin"); $t->https = 0; $t->save(); 6 Link to comment Share on other sites More sharing options...
Mike Rockett Posted July 1, 2017 Share Posted July 1, 2017 You'll also want to clear the cache for the site. Redirects are stored there too. Link to comment Share on other sites More sharing options...
formulate Posted July 5, 2017 Author Share Posted July 5, 2017 Thanks everyone! This solved my issue. K. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now