2013-06-14 5 views
1

리디렉션없이 다시 작성 할 수 있습니까?.htaccess 리디렉션 대신 URL 다시 쓰기

# redirect for the blog link 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^topgearsblog/?$ http://aerogearblog.wordpress.com/ [NC,L] 

는 내가 좋아하는 시도했다 :

# redirect for the blog link 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^topgearsblog/?$ http://myblog.wordpress.com/ [L,QSA,NC] 

하고 여전히 대신 재 작성의 리디렉션합니다.

답변

1

Apache 설정에서 mod_proxy을 활성화 한 경우에만 가능합니다. 사용하도록 설정 한 후에는 다음을 수행 할 수 있습니다.

# redirect for the blog link 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^topgearsblog/?$ http://aerogearblog.wordpress.com/ [NC,L,P] 
+0

이 기능이 사용 설정되어 있는지 확인할 수있는 방법은 무엇입니까? 무엇인가 :'' – Kevin

+0

'phpinfo();'출력으로 확인할 수 있습니다. – anubhava

+0

예, 허용하지 않습니다 (해당 서버의 보안 문제, tmi를 사용하는 사람들과 함께) – Kevin