2011-04-11 3 views
1
Redirect 301 /features/blahblah.php http://www.mysite.com/articles/blahblah1.php 

의 결과는 http://www.mysite.com/articles/blahblah1.php?q=features/blahblah.php이며 404 오류 페이지를 찾을 수 없습니다.리디렉션 301 - 내 새 URL에 이전 URL이 추가되어 404 오류가 발생하는 이유는 무엇입니까?

그래서 내가 뭘 잘못 여기 정확히 무슨 일이 일어나고 있는지

+0

가, 누군가가 같은 htaccess로 관련 물건에 대한 좋은 자료로 날을 제공 할 수 있습니다^등 ... – robert

답변

0

http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect 문서를하고있는 중이 야.

당신은 아마 RedirectMatch에, 같은 것을 사용할

: 오히려 임시 (302)보다

RedirectMatch ^/features/blahblah.php http://www.mysite.com/articles/blahblah1.php 

당신이 그것을이 "영구적"를 수 (SEO 목적을 위해 바람직 할 수있다) HTTP 상태 301로 재 지정하려면를 다음 대신 사용 리디렉션 :

관련 뉴스에서
RedirectMatch permanent ^/features/blahblah.php http://www.mysite.com/articles/blahblah1.php 
+0

RedirectMatch에 영구 ^/기능/blahblah.php HTTP (*.) //www.mysite.com/articles/blahblah1.php 같은 ht 결과 tp : //www.mysite.com/articles/blahblah1.php? q = features/blahblah.php – robert

관련 문제