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
Php 将服务器配置为一次定向_Php_.htaccess_Shiny_Shiny Server - Fatal编程技术网

Php 将服务器配置为一次定向

Php 将服务器配置为一次定向,php,.htaccess,shiny,shiny-server,Php,.htaccess,Shiny,Shiny Server,我想阻止用户使用直接访问访问闪亮的应用程序: http://www.mywebsite.com:3838/plot/2 我已经修改了闪亮的配置文件,以便任何人谁访问应用程序直接如上所述得到重定向 location /plot/2 { redirect "http://mywebsite.com/index.php?r=site/page&view=check2" 302 true;} check2.php用于确保尝试直接访问的用户是成员。Check2还有一个iframe src,与

我想阻止用户使用直接访问访问闪亮的应用程序:

http://www.mywebsite.com:3838/plot/2
我已经修改了闪亮的配置文件,以便任何人谁访问应用程序直接如上所述得到重定向

location /plot/2 {
redirect "http://mywebsite.com/index.php?r=site/page&view=check2" 302 true;}
check2.php用于确保尝试直接访问的用户是成员。Check2还有一个iframe src,与

http://www.mywebsite.com:3838/plot/2
当配置文件重定向/plot/2时,这会导致无限重定向循环。我希望重定向指令仅在有人试图通过直接访问进行访问时出现。我希望重定向不应用于check.php中存在的iframe src。我想知道有没有办法

1. Write a statement in php to disable redirect statement for the iframe OR
2. Write a statement in shiny config to apply redirect to certain sources of requests OR
3. Write a statement in htaccess to disable redirects on check.php
非常感谢您的帮助,非常感谢