我在网上写了一个接口 框架
里面的.htaccess
RewriteEngine On
RewriteRule ^api/(.+)/(.+)/(.*)$ /index.php?c=api&_table=$1&_interface=$2&$3 [L]
我想让这个配置生效,如何在Apache 操作呢??
我按照网上的方法:
(1)去除httpd.conf文件中"#LoadModule rewrite_module modules/mod_rewrite.so"前面的"#"号;
(2)然后再在httpd.conf中书写如下规则:
RewriteEngine On
RewriteRule ^api/(.+)/(.+)/(.*)$ /index.php?c=api&_table=$1&_interface=$2&$3 [L]
重启apache 根本没生效