Quantcast
Channel: 「WordPress 2, .htaccess Protected Directory, and 404 Error」的迴響
Viewing all articles
Browse latest Browse all 10

由:brasilblogger

$
0
0

Oh, to the comment Mário Gamito a tip … so your webserver shows not up php error … but there are some in the code … you have to use always ‘ instead of ’

for example here:
$this_dir = dirname(__FILE__).’/’; <<< wrong
$this_dir = dirname(__FILE__).’/’; <<< right

define(’WP_USE_THEMES’, true); <<< wrong
define(‘WP_USE_THEMES’, true); <<< right

require(’./wp/wp-blog-header.php’); <<< wrong
require(‘./wp/wp-blog-header.php’); <<< right

if wordpress is on root:
require(‘./wp-blog-header.php’);

Try it out. Hope it helps.


Viewing all articles
Browse latest Browse all 10