网址路由无法在我的PHP代码中使用

时间:2016-09-16 16:41:48

标签: javascript php html css web

我的.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          

1 个答案:

答案 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
                         });