我本地现在的文件路径是
http://localhost/eshop/index.php
http://localhost/eshop/lookinfo.php?id=57 现在我想把这2个地址给URL重写,因为是在本地,我是个初学者,不知道该怎么写?望高手多指教啊~
http://localhost/eshop/index.php
http://localhost/eshop/lookinfo.php?id=57 现在我想把这2个地址给URL重写,因为是在本地,我是个初学者,不知道该怎么写?望高手多指教啊~
而且
http://localhost/eshop/index.php
http://localhost/eshop/lookinfo.php?id=57
这两个文件要是在服务器上,浏览器打开后显示的路径是什么样子的啊?
RewriteRule ^eshop/index.html eshop/index.phpRewriteRule ^eshop/([0-9]+).html$ eshop/lookinfo.php?id=$1
RewriteEngine on
RewriteRule ^eshop/index.html eshop/index.php
RewriteRule ^eshop/([0-9]+).html$ eshop/lookinfo.php?id=$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^id-(\d*).html$ lookinfo.php/$1