重写htaccess的规则

时间:2017-07-03 09:47:52

标签: .htaccess

您好我如何将我的网址http://localhost/worldofcontrol/search/ic3500a192c更改为http://localhost/worldofcontrol/ic3500a192c。如何改变htaccess

RewriteEngine On    # Turn on the rewriting engine

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule ^([A-Za-z0-9-]+)/?$ search/product_details.php?id=$1 [NC,L]

0 个答案:

没有答案