marcostutu
04-10-14, 14:45
Täysi versio minulla on seuraava ongelma asennuksen jälkeen: [käytän vbseo] minun url ilmaantuu näin:
mydomain.com/[/url]en/forum/...
Kun olisi
mydomain.com/[/url]forum/en/...
ja minun mielestäni nginx ovat oikeat:
location /forum/ {
rewrite ^/forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
rewrite ^/forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ /forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ last;
rewrite ^/forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ /forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/$2 last;
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forum/vbenterprisetranslator_seo.php last;
}
if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/vbenterprisetranslator_seo.php last;
}
}
mydomain.com/[/url]en/forum/...
Kun olisi
mydomain.com/[/url]forum/en/...
ja minun mielestäni nginx ovat oikeat:
location /forum/ {
rewrite ^/forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
rewrite ^/forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ /forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ last;
rewrite ^/forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ /forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/$2 last;
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forum/vbenterprisetranslator_seo.php last;
}
if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/vbenterprisetranslator_seo.php last;
}
}