exchange – automatic discovery with http redirection works with all clients except iOS

I have a 2016 exchange with autodiscover.
Mail receives and sends works as a charm, auto discovery also works, except on iOS clients.

If I add the mailbox on Outlook 2019 or 2016, the settings are found through Autodiscover.
I can add the same mailbox on Apple Mail and Autodiscover works as well. I just need to fill in the username / e-mail address and password.
But as soon as I want to add this mailbox to an iOS device (12.4.1), whether it's an iPhone or an iPad, it can not find the settings automatically.

Is there a difference between Autodiscover for macOS and iOS?

oauth2 – Why OAuth 2.0 RFC6749 does not allow fragments in the redirection URI?

I could not find a similar question explaining the considerations of the RFC6749 specification to redirect the user from the authorization server to the client. In the RFC document, it is indicated

The URI of the endpoint MUST NOT include a fragment component.

How is it "MUST NOT" Are there security considerations here? I obviously do not want to redirect with the help of simple query parameters for the user agent clients because they are available during the transition. I noticed that OIDC implemented this by using hash fragments, but I wonder why OAuth 2.0 discourages this.
All takes?

If you have already answered the question, please have a link to the question.

htaccess – www redirection to non-www 301 does not work

I redirect 301 in www cpanel to a non-www (naked domain) and the code generated by the Cpanel redirect does nothing if the www to non-www parameter is set.

Type of server:
(Litespeed server, the domain has a certificate "encrypts".)

  • The DNS configuration is (do not point www to non-www like CNAME)
  • both point to the same IP address
  • mydomain.dev – One record – 127.0.0.1
  • www.mydomain.dev – A Record – 127.0.0.1

Non-www to www – works

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.dev$
RewriteRule ^(.*)$ "https://www.mydomain.dev/$1" (R=301,L)

Www to non-www – does not work

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^www.mydomain.dev$
RewriteRule ^(.*)$ "https://mydomain.dev/$1" (R=301,L)

Ideas?

Excluded page with redirection [on hold]

All of my existing URLs have received Exclude into Page with redirection in the index cover. How to fix this problem and how to troubleshoot the anomaly of analysis enter the description of the image here

redirection – Endless redirection on paths containing? (with custom module)

A similar question has been posted here: EventSubscriber endless redirect

But I have not yet been able to put in place a viable solution.

On Drupal 8.73: Basically, we have a custom module that redirects to clean URLs (so that / node / 42 is not indexed by Google). I have not written the module and I am a little confused about what it does and why. The module works well except that the URLs with? in them constantly redirect and get caught in a redirect loop. The browser eventually returns an error indicating that the page is redirected and will never load correctly. Here is the module:

    getRequest()->getBaseUrl();
    $attr = $event->getRequest()->attributes;
    if (null !== $attr && null !== $attr->get('node') && $attr->get('_controller') == 'DrupalnodeControllerNodeViewController::view') {
      $node = $attr->get('node');
      $nid = $node->id();
      $current_uri = Drupal::request()->getRequestUri();
      if (Drupal::service('path.matcher')->isFrontPage()) {
        $redirect_uri = '/';
      } else {
        $url = Url::fromRoute('entity.node.canonical', ('node' => $nid));
        $redirect_uri = $url->toString();
      }
      if ($redirect_uri != $current_uri) {
        $event->setResponse(new RedirectResponse($redirect_uri));
      }
    }
  }

  static function getSubscribedEvents() {
    $events(KernelEvents::REQUEST)() = ('onRequest');
    return $events;
  }


}

I believe this line is the problem:
$ event-> setResponse (new RedirectResponse ($ redirect_uri));

To the question linked above, a nice user suggested a solution that I do not quite understand, they said:

**> The problem is that you should never send an answer inside a StackPHP

application. Drupal continues to build his own answer (the true
cover page) and stores it in the cache. Define the answer in the event
instead: $ event-> setResponse ($ response); **

I do not know exactly what it means by defining the answer "in the event" instead.

Now, as this question is only a problem on the URLs with? in them, I found that I could correct the problem by wrapping the line above, line 37 as follows:

if (strpos ($ current_uri, & # 39;?)! = true) {
$ event-> setResponse (new RedirectResponse ($ redirect_uri));
}

However, I fear that this will cause unpredictable behavior and I prefer to correct it the first time. Can wise and kind souls tell me what I am doing wrong or neglecting or explaining how I can "define the answer to the event" instead?

Thank you!!

Redirection of the article menu magento 2

Only double click then it redirects to the page category,
if you use a click, it will not be redirected, for all elements
http://prntscr.com/oww09x
Someone help this problem.
Thank you so much!

Error 404 – How to customize the file path for 404 redirection in php?

I have created a plugin with a custom message type postcard.
The most of postcards are private.

I would like to redirect the disconnected user to a specific php file inside my plugin instead of the 404.php or achive.php.

I've tried it with template_redirect action like this:

add_action( "template_redirect", array( "MyClass", "is_redirection" ) );

Class MyClass{

    public static function is_redirection(){
        if( is_404() ) {
            global $post_type;
            if( $post_type === "postcard" ){
                $templates_dir = get_current_plugin_templates_dir_path();
                $page404 = $templates_dir . "/404-" . $post_type . ".php";
                if ( file_exists( $page404 ) ) {
                   wp_redirect( $page404 );
                   exit;
                }
            }
        }
    }  
}

My problem is here $page404 is a file path, not a URL so …
How can I do this without using .htaccess?

8 – How to define a custom redirection confirmation path for webform programmatically

I'm trying to set a custom URL to redirect when the Web form submission process is complete without using the Web form confirmation settings. I'm really trying with this:

$entity->setSettingOverride('page_confirm_path','/custom-path');

in my hook_entity_presave (), if i inspect the object 's settings, the page_confirm_path path is set with the value & custom / path & # 39; but does not work the redirection after sending, and if I see the configuration of this web form, do not see it custom path in the confirmation tab.