Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/233.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.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_Mod Rewrite - Fatal编程技术网

Php 帮助修改

Php 帮助修改,php,.htaccess,mod-rewrite,Php,.htaccess,Mod Rewrite,应该请求:site.ru/index.php?go=23&page=bla 更改格式:bla.site.ru/index.php?go=23 也就是说,用户在浏览器bla.site.ru/index.php?go=23中键入,所有信息都传递给请求site.ru/index.php?go=23&page=bla的脚本 禁止使用重定向请尝试以下操作: RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com$ RewriteRule ^ http://examp

应该请求:site.ru/index.php?go=23&page=bla 更改格式:bla.site.ru/index.php?go=23

也就是说,用户在浏览器bla.site.ru/index.php?go=23中键入,所有信息都传递给请求site.ru/index.php?go=23&page=bla的脚本

禁止使用重定向

请尝试以下操作:

RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com$
RewriteRule ^ http://example.com%{REQUEST_URI}?page=%1 [L,QSA]

这是一个与服务器管理相关的问题-应该在serverfault.com上。