我正在使用Prestashop,但通过链接激活帐户存在问题。我使用的是友好的网址,并且在单击激活链接后,出现警报,提示找不到该页面。这是我在prestashop主目录中的.htaccess
文件
<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>