2012-10-04 1 views
0

젠드 프레임 워크 :</p> <blockquote> <p><a href="http://site.com/presentations" rel="nofollow">http://site.com/presentations</a> /тест-тест.ppt</p> </blockquote> <p>프리젠 테이션 공용 폴더의 폴더입니다,하지만이 링크를 열 때이 오류가 나타날 수 있습니다 : 정적 파일에 대한 경로 키릴 URL이 내 URL

Invalid controller specified (presentations)

을 그

SetEnv APPLICATION_ENV production 


RewriteEngine On 
#RewriteBase all4you/public/ 
RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L] 
RewriteRule ^.*$ index.php [NC,L] 
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|html|pps)$ index.php [NC,L] 


order allow,deny 
allow from all 

내 구글은 iframe입니다 :

012 내 htaccess로 파일입니다
<iframe class="school-ppt-material-cont" src="http://docs.google.com/gview?url=<?= $fileSrc ?>&embedded=true" frameborder="0"></iframe> 

즉, $fileSrc이지만 프리젠 테이션 이름이 키릴 문자 인 경우 Google 뷰어는 파일을 열 수 없지만 파일 이름이 키릴 문자가 아닌 경우 (exp.

$fileSrc = 'http://mysite/presentations/тест-тест.ppt'; 
$fileSrc = 'http://mysite/presentations/test-test.ppt'; 
+0

디스크/서버의 파일 이름은 무엇인가에 마지막 규칙을 적응? 키릴 문자 또는 라틴 문자? – Jojo

+0

Latin (windows 1251) –

답변

0

당신이 올바른 방법으로 mod_rewrite의를 구성하고 있습니까 '테스트') 구글 뷰어 파일을 열 수 있습니까? 파일을 index.php로 리디렉션해서는 안됩니다. .htaccess 파일의 내 예 :

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L] 
RewriteRule ^.*$ index.php [NC,L] 
0

RewriteRule !\.(js|ico|gif|jpg|png|css|swf|html|pps|ppt)$ index.php [NC,L] 
+0

URL이 http://site.com/presentations/тест-тест.ppt 인 경우 파일을 열지 말고 URL이 http://site.com/presentations/test-test.ppt 인 경우 열려있는 –

+0

키릴 문자 파일 이름/URL은 내가 생각하는 다른 문제입니다 – Jojo

+0

이 문제를 해결하는 방법? –

관련 문제