centos wordpress 在此服务器上找不到请求的 URL,
centos wordpress the requested URL was not found on this server,
我正在尝试在 centos 中远程托管我的 wordpress 项目,我已将其托管在 /var/www/html
上并为所有子文件夹和文件授予了 777 权限,并进行了更改
在 .httpd 文件中,我已更改为 all
<Directory />
AllowOverride All
# Require all denied
</Directory>
和
<Directory "/var/www">
AllowOverride All
# Allow open access:
# Require all granted
</Directory>
也在
<Directory "/var/www/html">
AllowOverride All
</Directory>
已经改变
<Directory "/var/www/cgi-bin">
AllowOverride All
Options None
Require all granted
</Directory>
但不使用我得到相同的内部服务器错误,并且在此服务器上找不到请求的 URL /l,但我可以访问 wordpress wp-admin 的后端 什么是那么问题来了?
我认为最好的方法是检查 apache 错误日志。
在 .htaccess 中添加这个解决了问题
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
我正在尝试在 centos 中远程托管我的 wordpress 项目,我已将其托管在 /var/www/html
上并为所有子文件夹和文件授予了 777 权限,并进行了更改
在 .httpd 文件中,我已更改为 all
<Directory />
AllowOverride All
# Require all denied
</Directory>
和
<Directory "/var/www">
AllowOverride All
# Allow open access:
# Require all granted
</Directory>
也在
<Directory "/var/www/html">
AllowOverride All
</Directory>
已经改变
<Directory "/var/www/cgi-bin">
AllowOverride All
Options None
Require all granted
</Directory>
但不使用我得到相同的内部服务器错误,并且在此服务器上找不到请求的 URL /l,但我可以访问 wordpress wp-admin 的后端 什么是那么问题来了?
我认为最好的方法是检查 apache 错误日志。
在 .htaccess 中添加这个解决了问题
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]