Comments (4)
Hi @jignesh26 ,
which version of the module are you using? The documentation has an example on how to add the rule for the global whitelisting rule related to the homepage. Of course you could also add an additional whitelist entry with the rule value ^/site/?$
.
The current release candidate allows to switch to a static approach as an alternative to the regex definition, maybe this could help you to easily setup your desired environment.
from magento2-force-login.
Hello @websharp ,
I am using version 2.0.0, I have added the line from the documentation, /?$ to skip the home page but it is allowing all the pages. so as you said i will try to use ^/b2b/?$ but for what about the home page?
I have check the regular expression online to find out any error and found that expression has error. but i am not sure.
Thank you in advance.
from magento2-force-login.
Hi @jignesh26,
you said that you are using this rule:
/?$
but you need the start line indicator of regex to force the rule to match only with the homepage, and not with everything ending optionally with end slash character. So the correct rule is:
^/?$
from magento2-force-login.
Hi @jignesh26 ,
we released v2.1 of the module. Please try and check if your issue remains. I will close this issue, but if your issue remains, feel free to open again.
from magento2-force-login.
Related Issues (20)
- Homepage Redirect After Login Leads To incorrect url HOT 15
- table or view not found HOT 4
- Paypal Ipn HOT 5
- Not compatible with Magento 2.4.0 Commerce HOT 8
- incompatible with community Edition 2.4.0 HOT 1
- Call to undefined method setUrl on Forward class HOT 5
- white list missing Admin Uri HOT 4
- Secondary view problem redirect HOT 2
- Cannot get past /customer/account/loginPost/ when Redirect Customer to Account Dashboard after Logging in is set to "Yes" HOT 1
- 404 present in #180 still present in 4.1.0 HOT 2
- Login as Customer from admin panel HOT 2
- Error while composer require 5.0 HOT 4
- Password Reset Endless redirect HOT 4
- Problem with upgrade: 1061 Duplicate key name 'BITEXPERT_FORCELOGIN_WHITELIST_URL_RULE_STORE_ID' HOT 9
- Circular dependency: Magento\Customer\Model\Plugin\CustomerNotification depends on Magento\Customer\Model\Plugin\CustomerNotification and vice versa. HOT 2
- Exception #0 (Exception): Deprecated Functionality: strpos(): Non-string needles will be interpreted as strings in the future HOT 1
- Restore default whitelist all get static strategy HOT 9
- PHP 8.2 support HOT 1
- A whitelist entry is not editable Error after trying to update the module HOT 2
- Updating PHP version for Magento 2.4.7 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-force-login.