2011-04-16 49 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