我在那裏我在一個子目錄中安裝的WordPress非WordPress站點子目錄中的錯誤使用WordPress
www.example.com/wordpress/
我已經創建了WordPress的文件夾中的htaccess文件( whre我有它的所有內容)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
並提出在index.php文件(這個改變WordPress的文件夾中)
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require(dirname(__FILE__) . './wordpress/wp-blog-header.php');
管理員工作正常,但當試圖訪問該網站,它給了我一個錯誤500。 我在想什麼?
靈感:我想在這個網址中使用wordpress www.example.com/wordpress/ ,因爲我在根中有其他內容。