2016-09-16 40 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"