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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.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 重定向单个查询字符串htaccess_.htaccess_Redirect - Fatal编程技术网

.htaccess 重定向单个查询字符串htaccess

.htaccess 重定向单个查询字符串htaccess,.htaccess,redirect,.htaccess,Redirect,我正在尝试映射此字符串: 要访问此url,请执行以下操作: 我似乎找不到正确的重写规则来做这件事。我看到的都是给你的 我还在为文件夹名而挣扎 非常感谢您的帮助试试: RewriteEngine On RewriteCond %{QUERY_STRING} ^view=featured$ RewriteRule ^component/content/?$ /mynewpage/isreallycool/ [L,R] 在您的文档根目录下的htaccess文件中。因此,请准确填写您给我们提供的示

我正在尝试映射此字符串:

要访问此url,请执行以下操作:

我似乎找不到正确的重写规则来做这件事。我看到的都是给你的

我还在为文件夹名而挣扎

非常感谢您的帮助

试试:

RewriteEngine On

RewriteCond %{QUERY_STRING} ^view=featured$ 
RewriteRule ^component/content/?$ /mynewpage/isreallycool/ [L,R]

在您的文档根目录下的htaccess文件中。

因此,请准确填写您给我们提供的示例http://www.example.com/component/featured 就这样http://www.example.com/component/content/?view=featured 对吗?对不起,这是另一种方式,不是/组件/内容/等等