如何配置.htaccess permalink
我使用linux和页面上的所有file.html: 无数据库: 我想重定向这个:如何配置.htaccess permalink,.htaccess,permalinks,.htaccess,Permalinks,我使用linux和页面上的所有file.html: 无数据库: 我想重定向这个: http://example.com/?page=/mylinks.html 为此: http://example.com/mylinks.html 在“.htaccess”文件中,或其他替代文件中 谢谢! 试试这个: RewriteEngine On RewriteCond %{QUERY_STRING} page=(.*) RewriteRule ^$ %1 [L] 我用了你的方法,结果失败了!
http://example.com/?page=/mylinks.html
为此:
http://example.com/mylinks.html
在“.htaccess”文件中,或其他替代文件中
谢谢! 试试这个:
RewriteEngine On
RewriteCond %{QUERY_STRING} page=(.*)
RewriteRule ^$ %1 [L]
我用了你的方法,结果失败了!