系统是在win下开发的,现在要转到ubuntu xampp下来使用。其中htaccess在win下一切正常,代码如下:
- XML code
IfModule mod_rewrite.c>^M RewriteEngine on^M RewriteRule ^_(.*).html$ $1.php^M </IfModule>
但在ubuntu下不能使用,是何故?
------解决方案--------------------
出什么错?
IfModule mod_rewrite.c>^M RewriteEngine on^M RewriteRule ^_(.*).html$ $1.php^M </IfModule>