[英]Url Rewrite Help Removing Question Mark And .php
I have the following url: 我有以下网址:
http://example.com/cars.php?category=suv?car_title=benz http://example.com/cars.php?category=suv?car_title=benz
I want the url to look like this: 我希望网址看起来像这样:
http://example.com/cars/suv/benz http://example.com/cars/suv/benz
You can use from this structure in your htaccess file: 您可以在htaccess文件中使用以下结构:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^cars/(.*)/(.*)/?$ /car.php?category=$1&car_title=$2 [NC,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.