Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何配置.htaccess permalink_.htaccess_Permalinks - Fatal编程技术网

如何配置.htaccess permalink

如何配置.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] 我用了你的方法,结果失败了!

我使用linux和页面上的所有file.html: 无数据库: 我想重定向这个:

http://example.com/?page=/mylinks.html
为此:

http://example.com/mylinks.html
在“.htaccess”文件中,或其他替代文件中

谢谢!

试试这个:

RewriteEngine On
RewriteCond %{QUERY_STRING} page=(.*)
RewriteRule ^$ %1 [L]

我用了你的方法,结果失败了!