2017-10-14 1 views
0
내가 기존 WP 사이트에 꽤 URL을 소개 할 필요가

이 필요합니다 :워드 프레스 사이트는 새로운 꽤 URL을, nginx를

location ~ \.php$ { 
    try_files $uri =404; 
    include fastcgi_params; 
    # other fastcgi stuff ... 
} 
location/{ 
    rewrite /foo /index.php?page_id=5&param=foo last; 
    try_files $uri $uri/ /index.php?$args; 
} 

하지만 워드 프레스는 리디렉션 계속 (301) 나 :

/foo-another-post-title-with-same-prefix 

내가 잘못하고 디버깅하는 방법은 무엇입니까? 는

답변

0
location /foo { 
     rewrite^/index.php?page_id=5&param=foo last; 
} 

이 작업을 수행해야합니다 감사합니다 :)

관련 문제