私のWordPressで私は子ページを作成しようとしていますが、ページに行くとエラー404ページが見つかりません。子ページが見つかりません404 - Wordpress
私はページをテストし、それを子ページとして削除してすぐに動作します。 親の下に戻して、パーマリンクの設定を更新し、キャッシュをフラッシュしようとしましたが、まだ見つからなかったページを返しました。
これは子ページでのみ発生し、パーマリンク構造に何か問題があるとは思われますが、何が間違っているのか正確にはわかりません。
私は今のところ未完成のページを使用し続けますが、このバグを解決するには素晴らしいことです。どんな助けでも大歓迎です。
以下は、驚くほど長い.htaccessファイルです。
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /beta2/
RewriteRule ^/beta2/http:/kuzcolighting.com/beta/wp-content/hostinger-page-cache/ - [L]
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP_COOKIE} !(wordpress_test_cookie|comment_author|wp\-postpass|wordpress_logged_in|wptouch_switch_toggle|wp_woocommerce_session_) [NC]
RewriteCond %{DOCUMENT_ROOT}/beta2/http:/kuzcolighting.com/beta/wp-content/hostinger-page-cache/$1/_index.html -f
RewriteRule ^(.*)$ /beta2/http:/kuzcolighting.com/beta/wp-content/hostinger-page-cache/$1/_index.html [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 weeks"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /beta2/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /beta2/index.php [L]
</IfModule>
# END WordPress
# Use PHP7.1 as default
AddHandler application/x-httpd-php71 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php71/lib
</IfModule>
ないバグ:
は、あなたの.htaccessファイルにこのコードを追加します。 permalinksの問題です。あなたのhtaccessファイルは書かれていますか? (WPはあなたのhtaccessファイルを書くことができない場合、パーマリンクを保存するときに警告/警告を表示します)。 htaccessの内容をここに含めます。 –
元の投稿に.htaccessを追加しました。現在、私は古いドメインであるhttp://kuzcolighting.com/beta2でいくつかのルールを書き直しています。今はhttp://kuzcolighting.com/betaにあります。それが問題なのでしょうか? – Surge