gareth94
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: ##Domain## redirected you too many times errorThank you @yasu88. Of course, the URL is atebol.com. The frontend is password protected so that visitors can’t see it until I’m happy the site is working.
The domain is hosted on Plesk and it does show under Server Management that
Reverse Proxy Server (nginx)is running…Also, I’ve checked the
wp_optionsfile in the database and the following URL is specified for both siteurl and home:https://atebol.comI’m not sure if it will help but here’s the contents of my .htaccess file.
If anyone has any suggestions, I would be so so grateful 🙂
Thank you Bryle. Well spotted regarding the out-of-date version! The only thing is, I’ve updated the plugin and I still get the same error 🙁
Here is the new log file if you would like a look: https://pastebin.com/EDcT04wg
Many thanks
Forum: Everything else WordPress
In reply to: Remember user choice on next sessionThank you Steven. I’m looking to do it in the code. I’ve gone into functions.php in my theme directory. I found the code below online (which I’ve adapted slightly) that seems to be close to what I need. I’m not sure exactly what I need changing to make it work though! 🙁
function has_my_cookie() { if (!is_admin()){ //Check to see if our cookie is set if not redirect to your desired page and set the cookie if ( !isset($_COOKIE["sevisitor"])) { //setcookie setcookie('sevisitor', 1, time()+1209600, "/", "http://localhost/website/homepage", false); //Redirect wp_redirect( get_site_url().'/shop' ); exit; } if ( !isset($_COOKIE["sevisitor2"])) { //setcookie setcookie('sevisitor2', 1, time()+1209600, "/", "http://localhost/website/homepage", false); //Redirect wp_redirect( get_site_url().'/corporate' ); exit; } } } add_action('init', 'has_my_cookie');Forum: Everything else WordPress
In reply to: Remember user choice on next sessionThank you for your help @sterndata. That tutorial is very useful! The only thing I’m unsure of now though is how to remember the user’s page choice. If the cookie is set I’d like it to direct to the SHOP or CORPORATE side of the site (depending on their selection)
Hello,
Many thanks for your help. I’ve included the backup log to Pastebin, here:Kind regards