でアクセスできないファイルをsitemapindex.xml:example.com/forumsバニラフォーラムは、私のフォーラムは、URLにインストールされているnginxの
私が使用しているnginxのとバニラのURLを「飾り立てる」します。私は私のnginx.confに
/forum/conf/config.php, “RewriteUrls” to “True”.
と
を設定しました:location /forums {
index index.php index.htm index.html;
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
log_not_found off;
expires 30d;
}
try_files $uri $uri/ @forums;
}
location @forums {
rewrite ^/forums(.+)$ /forums/index.php?p=$1 last;
}
問題は、私はバニラフォーラムでsitemap pluginを設置しています。
、そして得られたサイトマップを
example.com/forums/sitemapindex.xml
に位置することになってしかし、私はそこにnginxのは私に404
どのように私はこれを解決するのですを与える移動するときですか?
。どうも!これで解決しました。 –