1

wordpressドメイン内にインストールしましたfolder namequestions、ランディングページは正常に機能していますが、他にはlinks機能していませんpage not found。何をすべきか ??

.htaccessのような使用

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . questions/ [L]

index.php ページのみを実行しています。何か助けはありますか?

4

1 に答える 1

0

親フォルダーにhtaccessがあるため、rewritebaseが必要になるようです

RewriteEngine On
RewriteBase /questions/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /questions/ [L]

/questions というサイトのルートのサブフォルダーにこれを置いていますか?

はいの場合は、変更する必要があると思います

RewriteRule . questions/ [L]

RewriteRule . /questions/ [L]

またはrewritebaseの代わりにこれを試してください

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /questions/ [L]
</IfModule>
于 2012-11-17T10:11:40.137 に答える