2011-04-16 51 views
2
http://www.safi.com/front/property/property_detail.php?pid=12? 

我想要刪除front/property。這應該是使用.htaccess從URL中刪除一部分

http://www.safi.com/property_detail.php?pid-12. 

,我寫下面的代碼:

Options +FollowSymLinks 
RewriteEngine On 
RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)/propertydetail/([a-zA-Z0-9\-]+)$ propertydetail.php?pid=$3 

請幫我..........

回答

1
+0

是的,但我沒有解決這個請幫我 – 2011-04-16 07:23:40

+0

你需要研究正式表達親愛的.. 和它取決於http://domain.com/和查詢你傳遞..我不能給你適當的「規則」對於許多事情你必須認真考慮它... – asharajay 2011-04-16 07:29:35

1

did you try(not tested)

Options +FollowSymlinks 
RewriteEngine On 
RewriteRule ^front/property/(.*) /$1