WordPressのWebサイトがあり、サブディレクトリに別のサイトがインストールされています。子WebサイトのすべてのサブページでURL404の問題が発生している(サブディレクトリにインストールされている)
子ウェブサイトのランディングページを読み込んでいますが、ページにアクセスしたり投稿したりするとすぐに404エラーが発生します。このCMSには独自の.htaccessがあります。
Path:
Wordpress: wp/.htaccess
QA: wp/qa/.htaccess
Wordpressの.htaccessコード
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
QA.htaccessコード
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
書き換えルールについてはよくわかりませんので、整理するのを手伝ってください。百万ありがとう