Sunday, November 27, 2022
HomeIOS Developmentios - htaccess rewrite rule not utilized when in A2HS/PWA mode?

ios – htaccess rewrite rule not utilized when in A2HS/PWA mode?


My symfony5 software serves up a microsoft azure SSO hyperlink up entrance, and it really works nice via the browser. When a consumer opts so as to add my app to their iOS homescreen nevertheless, there’s a downside.

Right here is my htaccess config

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1

This makes the public/ degree of my folder construction invisible, in order that URIs from symfony appear like this

https://www.myapp.com/node

somewhat than this

https://www.myapp.com/public/node

When ths microsoft SSO is used via a browser, a profitable login try comes again to the route

https://www.myapp.com/login_microsoft_check

BUT, if I add my app to homescreen on an iOS system, for some cause my app tells the microsoft SSO interface to return a profitable sign-in to this URI as a substitute:

https://www.myapp.com/public/login_microsoft_check

What’s going on right here? Why is my htaccess rewrite rule not utilized when in A2HS/PWA mode?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments