我有一个基于谷歌地图的小网络应用程序。我有这样的网址:
http://www.example.com/web.php?u=olives-restaurante-de-ensaladas-en-margarita
我想拥有这个:
http://www.example.com/web/olives-restaurante-de-ensaladas-en-margarita
所以我想将我的参数dynamic URLs
转换为semantic URLs
我怎样才能做到这一点?!
我试图将以下代码放在我的.htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^web/([A-Z0-9]+)/$ web.php?u=$1
但可悲的是,当我尝试访问http://www.example.com/web/olives-restaurante-de-ensaladas-en-margarita
它时,它会将我重定向到 404 页面。
我做错了什么?