我的.htaccess代码 它仍然在链接中显示文件名(http://localhost/examp/myproj(urlrouting)/signup.php) 但点击注册我希望链接为(http://localhost/examp/myproj(urlrouting)/SignUp) 使用xampp
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index index.php
#RewriteRule ^test/([(A-za-z0-9)]+) test.php?test=$1
RewriteRule ^SignUp signup.php
答案 0 :(得分:0)
在.htaccess文件中使用以下内容应该可以完成您要执行的操作。
var result = list.GroupBy(x=>new {x.GroupID, x.Location,x.Place})
.Select(g=> new
{
GroupID = g.Key.GroupID,
Location = g.Key.Location,
Place = x.Key.Place
});