1
我的論壇上安裝的網址:example.com/forums香草論壇sitemapindex.xml文件無法訪問nginx的
我已經使用nginx的和香草以「美化」的URL。我給自己定
/forum/conf/config.php, 「RewriteUrls」 to 「True」.
,並在我的nginx.conf:
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
如何解決這個問題?
我被錯誤地集中於重寫。謝謝!這解決了它。 –