我在本地主机中工作,已经在我的站点中编写了htaccess
真实URL:
localhost/lite-cms/template/content/index.php?u_title=about-mind-yolk我添加的htaccess
RewriteRule ^([^/]*)\.html$ /lite-cms/template/content/index.php?id=$1 [L]我像这样获取URL
http://localhost/lite-cms/template/content/about-mind-yolk.html但是我想要这样的URL,没有show template/content/
http://localhost/lite-cms/about-mind-yolk.html请给出一个解决方案?
发布于 2012-09-13 20:24:12
尝试一下(确保htaccess位于lite-cms/目录中):
RewriteEngine on
RewriteBase /lite-cms/
RewriteRule ^([^/]*)\.html$ template/content/index.php?u_title=$1 [L]https://stackoverflow.com/questions/12405361
复制相似问题