首页 > 解决方案 > 使用友好 URL 时如何启用对指定 URL 的访问?

问题描述

我正在使用 Prestashop,但通过链接激活帐户时出现问题。我使用的是友好的 URL,点击激活链接后,会出现一个警告,提示该页面尚未找到。这是我.htaccess在 prestashop 主目录中的文件

<FilesMatch "\.tpl$">
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
        RewriteCond %{REQUEST_URI} !/module/activationbymail [NC]
RewriteRule ^(.*)/[0-9]+/?$ /$1/? [L,R=301]
    </IfModule>

    # Apache 2.4
    <IfModule mod_authz_core.c>
        Require all denied
                RewriteCond %{REQUEST_URI} !/module/activationbymail [NC]
RewriteRule ^(.*)/[0-9]+/?$ /$1/? [L,R=301]
    </IfModule>
</FilesMatch>

标签: phpurlprestashop

解决方案


推荐阅读