Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess Zend Framework:将西里尔url路由到静态文件_.htaccess_Zend Framework - Fatal编程技术网

.htaccess Zend Framework:将西里尔url路由到静态文件

.htaccess Zend Framework:将西里尔url路由到静态文件,.htaccess,zend-framework,.htaccess,Zend Framework,这是我的网址: /ppt 演示文稿是公用文件夹中的文件夹,但当我打开此链接时,会出现以下错误: 指定的控制器无效(演示文稿) 这是我的.htaccess文件: SetEnv APPLICATION_ENV production RewriteEngine On #RewriteBase all4you/public/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteC

这是我的网址:

/ppt

演示文稿是公用文件夹中的文件夹,但当我打开此链接时,会出现以下错误:

指定的控制器无效(演示文稿)

这是我的.htaccess文件:

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
这是我的google iframe:

<iframe class="school-ppt-material-cont" src="http://docs.google.com/gview?url=<?= $fileSrc ?>&embedded=true" frameborder="0"></iframe>

您是否以正确的方式配置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]

使你的最后一条规则适应

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

如果URL为“不打开文件”,但如果URL为“文件”为“打开”,西里尔文文件名/URL是另一个问题,我想请更新您的问题,并添加有关您要检索的文件的信息,哪个URL磁盘/服务器上的文件名是什么?西里尔语还是拉丁语?
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|html|pps|ppt)$ index.php [NC,L]