Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1126360

    i’ve turned on Maintenance Mode in my Enfold child theme, & redirecting to a “coming soon” page.

    works great, but, i keep my WordPress admin open in Safari & use Chrome to check the site – but i can’t do that without being logged in in Chrome. i’d like to stay logged out in Chrome to avoid the WordPress admin bar at the top – just to make sure i’m seeing the site as my users will.

    so, is there a way to whitelist my IP address to give me access this way?

    i’ve seen some plugins that’ll do this – was just hoping to not have to install “another” plugin ;-)

    thanks.

    #1126421

    Hey SyberKnight,

    You could use an incognito window in Chrome maybe?

    Best regards,
    Rikard

    #1127015

    incognito mode made no difference

    #1127035

    i have tried a LOT of other “plugins” that will put the site in a “maintenance mode”/”under construction”/”coming soon” status, that would let me control access via IP Address as well as User Roles (Administrators) – but NONE of them work well; most of them even left the off status on even after i turned it off & deactivated the plugin & deleted the plugin & empty caches. the only way to get the pages back were to edit each page a little & republish them. ugh.

    not sure why this is so difficult, but i guess it is :-(

    if anybody knows of a way to do this, i’m all ears.
    thanks.

    PS: one more thing – when i have Enfold’s maintenance mode on, & have it redirecting to a page i created for it, the url for the user who comes to the site appends itself with “/?avia_forced_reroute=1”.
    it would be nice if the url wouldn’t change at all, just show the domain without showing the “coming soon” page. that way, when the site goes live, if a user comes back to where they left off, it may still take them to the coming soon page. -2¢

    • This reply was modified 5 years, 2 months ago by SyberKnight2.
    #1127778

    anyone? :-(

    #1128331

    Hi,

    This is strange, this shouldnt be working just on some browsers and others not, this functionality is controlled a different way
    Can you share admin access please?

    Best regards,
    Basilis

    #1128350

    hi Basillis,

    as far as i’m aware, the browser doesn’t matter, it’s like this in all that i’ve tried (safari, chrome, firefox). it’s not a browser issue, it’s just the functionality of the theme’s maintenance option. since Enfold’s maintenance option is only “user-roles based” instead of “ip address whitelist based” then i was hoping somebody might have a bit of code to add to the child themes function.php (or somewhere) to let me specify a couple IP addresses that would be allowed in addition to the user role.

    if that’s not possible, then please add this as a potential future function.

    in the meantime, i found a crude workaround ;-)
    i discovered that in Users > my user > Options, i can UNcheck the “Show Toolbar when viewing site” option. that ultimately gives me what i really wanted, which was to have the maintenance page up for traffic while we develop the site, but get rid of the wordpress top bar when viewing the site, to make sure everything looks & works as it will for the visitors.

    now, aside from that, is there a way to get ride of the “/?avia_forced_reroute=1” bit appended to the domain when in maintenance mode?
    thanks.

    #1129073

    Hi,

    Yes, that’s possible. Set the “Maintenance Mode” to the second option (Enabled – Use selected page content without redirect).

    Thank you for the update.

    Best regards,
    Ismael

    #1129373

    hi Ismael,

    thanks for replying, but, i don’t understand… where is the area to enter whitelisted IP addresses?

    or is your instruction just regarding my 2nd question? i did as you said & it does seem to remove the “/?avia_forced_reroute=1” bit from the url. so, i’m curious – why would anyone ever want that appending the url? so why even have that as an option. i didn’t understand the wording difference between the 2 options, but now i do (i think) :-)

    #1129449

    Hi,

    thanks for replying, but, i don’t understand… where is the area to enter whitelisted IP addresses?

    That option is not available, unfortunately. We don’t really understand why you need that. You seem to be overly complicating your development process.

    Thank you for the update.

    Best regards,
    Ismael

    #1129719

    hi Ismael,

    perhaps i am over complicating this – sorry.

    i guess my explanations weren’t clear. i’ll try again – the reason i was wanting a whitelisted IP address option for the maintenance mode is so i wouldn’t have to be logged in to view how the site would be displayed as a regular user.

    since i initially asked about that, i found the option to turn off the admin top toolbar when viewing the site; which was my main issue & reason for wanting the IP address option. i had used such a plugin in the past & liked how it worked, but none of them seem to work well enough to use anymore. thus my asking if Enfold could do this, or if there might be some code i could add to create this function.

    so, since that’s not an option, i’ll just have to settle with keeping the top toolbar hidden.

    the other issue of the redirected info in the url, you solved by telling me to choose the other option. which i did & that works fine.
    i didn’t understand the language for that option.
    i still don’t understand what the purpose of wanting that option would be; my curiosity would appreciate an explanation of that, but not necessary.

    thanks again!
    -jason.

    #1130789

    Hi,

    i still don’t understand what the purpose of wanting that option would be; my curiosity would appreciate an explanation of that, but not necessary.

    It sets the header status to 404, so the maintenance and 404 page won’t get crawled or index by the search engine. It was requested by a lot users previously. You can change that behavior using the “avf_404_supress_status_code” filter.

    Best regards,
    Ismael

    #1130793

    Oh, so by my choosing the other option to remove the “/?avia_forced_reroute=1” from the url, the site is open for search engine bots to index the in development site!?
    ugh, so i can’t have my cake & eat it too? meaning, if i don’t want “/?avia_forced_reroute=1” in the url for the user, while in maintenance mode, then google will index the site during my dev phase?
    so just to be clear – if i do not want search engine bots crawling the site as i develop it, i need to choose the other option & let “/?avia_forced_reroute=1” be in the url – right/wrong?

    and now, your throwing another kink in this by giving me “avf_404_supress_status_code” – i’m sorry but, i have NO idea what that is.

    i know this thread is sorta dragging on, but,
    1) please confirm or re-explain about the “/?avia_forced_reroute=1
    2) please explain what “avf_404_supress_status_code” is

    thanks again.
    -jason.

    #1130864

    Hi,

    Thank you for the update.

    1.) No, the site won’t be accessible to crawlers as long as the Settings > Reading > Search Engine Visibility is discouraged.

    2.) That is a filter, so you can use that to disable the force reroute.

    // https://developer.wordpress.org/reference/functions/add_filter/

    add_filter('avf_404_supress_status_code', function() {
       return true;
    });

    This should display the custom pages without setting the status header to 404.

    Best regards,
    Ismael

    #1131235

    i’m terribly sorry Ismael & others, but i’m just not “getting it” – & i really want to “get it”. i beg for more patience…

    so, the Enfold > Maintenance Mode options:
    A) Enabled – Use Selected page content without redirect = no matter what is entered into the address bar after the domain, the user is shown the “coming-soon” page (this is what i want & am happy with).
    B) Enabled – Redirect to selected page = going to any page changes the url to “http://domain.com/coming-soon/?avia_forced_reroute=1”
    …(and in the following dropdown menu, i’ve selected the “coming-soon” page i made for this purpose).

    regarding these above two options, whether either is “Enabled” or not, these do not have anything to do with search engine bots ability to crawl & index the pages in this site – but instead, that function is in the Settings > Reading > Search Engine Visibility option – right/wrong?

    then as a second issue – i’m not sure where this 404 filter thing came from. i totally don’t understand that, but i’m wondering if it has anything to do with my issues or was put in here by mistake or what.

    my curiosity question was in regards to the “/?avia_forced_reroute=1” part that results from having “B” from the above options selected. i just don’t understand what that accomplishes & why anybody would need it. your answer to that was in giving me the 404 filter code. is that related? if so, how?

    i do see the option in Enfold > Theme Options > “Custom Error 404 Page”, but i’ve not planned on creating a special page for “page not found” issues.

    thanks again,
    -jason.

    #1131640

    Hi,

    Thank you for the update.

    We reviewed the code again and the maintenance page’s status is actually set to 503 when you chose to “redirect” and 302 if not. The “avia_forced_reroute” in the case of the maintenance mode page just signifies that the page redirects from the protected page to the selected maintenance page. And yes, you’re right about the 404. Sorry for the confusion. You can use that filter if you want to set the 404 custom page status header to 404.

    regarding these above two options, whether either is “Enabled” or not, these do not have anything to do with search engine bots ability to

    Yes, that’s correct.

    Best regards,
    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.