Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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/6/codeigniter/3.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 如何在codeigniter中编写url重写_.htaccess_Codeigniter_Url - Fatal编程技术网

.htaccess 如何在codeigniter中编写url重写

.htaccess 如何在codeigniter中编写url重写,.htaccess,codeigniter,url,.htaccess,Codeigniter,Url,我在codeigniter中用.htaccess编写url重写,如下所示 RewriteEngine on RewriteRule ^Vorarlberg.html$ index.php/users/suchergeb?short_query=true&sbundesland=V&offset=0&limit=25&country=A [L] RewriteRule ^Tirol.html$ index.php/users/suchergeb?short_quer

我在codeigniter中用.htaccess编写url重写,如下所示

RewriteEngine on
RewriteRule ^Vorarlberg.html$ index.php/users/suchergeb?short_query=true&sbundesland=V&offset=0&limit=25&country=A [L]
RewriteRule ^Tirol.html$ index.php/users/suchergeb?short_query=true&sbundesland=T&offset=0&limit=25&country=A [L]
myproject位于irat.2013文件夹下的wamp服务器中

上面的代码正在工作,但我们不想显示完整的url,我们想显示 如下

irat.2013/Vorarlberg.html

还有一件事,如果我们在index.php/users之前给出完整的localhost url。。。那么,只有它在以另一种方式发挥作用,而事实并非如此。
请帮助我使用application/config/routes.php文件。检查此处的文档:

谢谢您的重播我看到了上面的url,但我的问题是当我们单击链接href=Vorarlberg.html时,我们正在通过.htaccess向此链接添加额外参数,如上所述,并将该链接发送到用户控制器和suchergeb方法。这工作正常,但我们不想向访问者用户显示url