現在の環境は下になります。
MacOS12.4
MAMP
環境内でドメイン直下に/wp/というディレクトリを設置し、
Wordpressを作成したところドメインより以下の下層ページがnot foundと表示されページが見れません。
Wordpressの設定は下になります。
パーマリンク選択:投稿名
ドメイン直下の.htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wp/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp/index.php [L] </IfModule>
ドメイン直下index.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__ ) . '/wp/wp-blog-header.php' );
おそらくMAMPのapacheのルート設定か.htaccessの設定かとおもうのですが、
どなたかわかる方いらっしゃいましたら教えていただけませんでしょうか?

0 コメント