# Configuration

Once the extension is installed successfully, go to **Stores>Configuration** to configure the extension for use.

<figure><img src="/files/QdcIkFJS2731qv7T7esl" alt=""><figcaption></figcaption></figure>

**Enable Force Login:** Enable or Disable the extension from here. Set it as enabled to use the features of the extension.

**Redirect URL:** Admin can enter the redirect URL for force login here to redirect the customers to the mentioned URL.

**Force Login Alert Message:** The admin has the option to add a force login alert message displayed to the customers when login is mandatory.

## Categories

<figure><img src="/files/Awy2WIV6YwBE2rFiqP46" alt=""><figcaption></figcaption></figure>

**Enable Force Login For Category:** Admin can Enable or Disable Force Login for categories from here.

**Select Categories:** The categories where the admin wants force login option is to be selected here.

## CMS Pages

<figure><img src="/files/YTv33nsz9cEbr0L1iPjh" alt=""><figcaption></figcaption></figure>

**Enable Force Login For CMS Pages:** Enable or disable this option to apply force login to CMS pages or vice versa.&#x20;

**Select CMS pages:** Admin can choose the CMS pages for which the force login option is to be applied.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-force-login-extension/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
