1.
httpd.conf中确保LoadModule rewrite_module modules/mod_rewrite.so2.<Directory "C:/php/mywork">
… #AllowOverride None改成 AllowOverride All …</Directory>
3.实验一建立一个.htaccess文件,目的是将alice.html=>bob.htmlRewriteEngine onRewriteRule ^alice.html$ bob.html
4.实验二
code igniter去掉index.php的例子
RewriteEngine On
RewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ test/index.php/$1 [L]