为什么从 URL 末尾删除 / 会给我一个 403?
Why does removing the / from the end of URL give me a 403?
您好,我最近在本地主机上的 Wordpress 上编写了一个店面子主题,并使用免费版的 Duplicator 将其移动到我网站的服务器上进行演示。该网站在 url 上运行良好:http://connorperzely.com/advancedpowereq.com/
但是,当我尝试在没有尾随“/”的情况下同时加载它时 URL 它 returns 一个 403:http://connorperzely.com/advancedpowereq.com
为什么把url末尾的/去掉会出现403?我该如何修复它才能正常工作?
这是我的 .htaccess:
# This file was updated by Duplicator on 2017-08-18 23:29:51. See .htaccess.orig for the original .htaccess file.
# Please note that other plugins and resources write to this file. If the time-stamp above is different
# than the current time-stamp on the file system then another resource has updated this file.
# Duplicator only writes to this file once during the install process while running the installer.php file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /advancedpowereq.com/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /advancedpowereq.com/index.php [L]
</IfModule>
# END WordPress
根据您的 .htaccess 文件,它正在按预期工作。
url: http://connorperzely.com/advancedpowereq.com 结尾id .com 因此它被识别为文件和行
RewriteRule . /advancedpowereq.com/index.php [L]
未达到。
不建议在您的子域中有一个点,http://connorperzely/advancedpowereq
可以流畅地工作
您好,我最近在本地主机上的 Wordpress 上编写了一个店面子主题,并使用免费版的 Duplicator 将其移动到我网站的服务器上进行演示。该网站在 url 上运行良好:http://connorperzely.com/advancedpowereq.com/
但是,当我尝试在没有尾随“/”的情况下同时加载它时 URL 它 returns 一个 403:http://connorperzely.com/advancedpowereq.com
为什么把url末尾的/去掉会出现403?我该如何修复它才能正常工作?
这是我的 .htaccess:
# This file was updated by Duplicator on 2017-08-18 23:29:51. See .htaccess.orig for the original .htaccess file.
# Please note that other plugins and resources write to this file. If the time-stamp above is different
# than the current time-stamp on the file system then another resource has updated this file.
# Duplicator only writes to this file once during the install process while running the installer.php file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /advancedpowereq.com/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /advancedpowereq.com/index.php [L]
</IfModule>
# END WordPress
根据您的 .htaccess 文件,它正在按预期工作。
url: http://connorperzely.com/advancedpowereq.com 结尾id .com 因此它被识别为文件和行
RewriteRule . /advancedpowereq.com/index.php [L]
未达到。
不建议在您的子域中有一个点,http://connorperzely/advancedpowereq
可以流畅地工作