Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.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
Php 路由问题代码点火器_Php_.htaccess_Codeigniter_Routing_Routes - Fatal编程技术网

Php 路由问题代码点火器

Php 路由问题代码点火器,php,.htaccess,codeigniter,routing,routes,Php,.htaccess,Codeigniter,Routing,Routes,我有链接 但我需要隐藏“/static/frontend”从URL中删除此部分并从此URL获取图像 我认为它将来自.htaccess,其中一个选项是在文档根目录中创建一个符号链接 第二种选择是使用htaccess重写规则。类似于以下的操作应该可以正常工作: RewriteRule ^((deutsch|english)/.+/.+/.+\.(jpe?g|png|gif))$ /static/frontend/$1 [L] 如果有更多的语言,只需将它们添加到第一个括号中,如(德语、英语、俄语

我有链接

但我需要隐藏“/static/frontend”从URL中删除此部分并从此URL获取图像


我认为它将来自.htaccess,其中一个选项是在文档根目录中创建一个符号链接

第二种选择是使用htaccess重写规则。类似于以下的操作应该可以正常工作:

RewriteRule ^((deutsch|english)/.+/.+/.+\.(jpe?g|png|gif))$ /static/frontend/$1 [L]
如果有更多的语言,只需将它们添加到第一个括号中,如
(德语、英语、俄语)

还请注意,不建议在高负载生产中对静态内容使用重写,最好使用符号链接