2016-09-16 49 views
0

我的.htaccess代码 它仍然显示的链接(http://localhost/examp/myproj(urlrouting)/signup.php) 但在点击注册文件名我想要的链接使用XAMPPURL路由没有在我的PHP代码工作

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   
是( http://localhost/examp/myproj(urlrouting)/SignUp

回答

0

在.htaccess文件中使用以下内容应该可以完成您正在尝试执行的操作。

RewriteEngine On # Turn on the rewriting engine 
RewriteRule ^SignUp/?$ signup.php [NC,L] # Handle requests for "SignUp"