search
HomeCMS TutorialEmpire CMSWhat should I do if the redirect address is wrong after logging in to Imperial CMS?

Methods to solve the error of jump address after login for Imperial CMS members: Check the correctness of the jump address after login in the member group settings. Check that the login code in the login page uses the correct jump address. Check whether the template file called after successful login contains the correct jump code. Check whether the custom login plug-in contains the jump code and the address is consistent with the member group settings. Clear cache of Empire CMS.

What should I do if the redirect address is wrong after logging in to Imperial CMS?

Solution to the wrong jump address after logging in to Imperial CMS members

Problem: The jump address is wrong after logging in as an Imperial CMS member. How to solve it?

Answer:

  1. Check the member group settings

Make sure that after the member logs in, the jump The address is filled in correctly in the member group's settings. In the Imperial CMS backend, enter "Member Management" -> "Member Group Management", select the corresponding member group, and check the "Jump address after login" setting.

  1. Check login code

On the login page, check whether the login code is correct. Make sure the correct jump address is used in the login code. Typically, the login code looks like the following example:

// 用户登录
if ($r['result'] == 1)
{
    // 登录成功
    echo "<script>
        alert('登录成功');
        location.href = '{$return_url}';
        </script>";
    exit();
}
else
{
    // 登录失败
    echo "<script>
        alert('登录失败');
        location.href = '{$login_url}';
        </script>";
    exit();
}
  1. Check the template file

Ensure that after successful login, the template file called contains Correct jump code. In the template file, check the following code:

<script>
    location.href = '{$return_url}';
</script>
  1. Check the custom login plugin

If a custom login plugin is used, check the plugin Is the code in . Make sure that the jump code is included in the plugin and that the jump address is consistent with the member group settings.

  1. Clear Cache

If none of the above steps solve the problem, please try clearing the cache of Empire CMS. In the Imperial CMS backend, go to "System Settings" -> "Other Settings" and click the "Clear Cache" button.

The above is the detailed content of What should I do if the redirect address is wrong after logging in to Imperial CMS?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use