.htaccess file:
Code:
RewriteEngine on
RewriteRule /([a-z]+) /index.php?module=$1
Theoretically, //localhost/eworkinfo/login should redirect to //localhost/eworkinfo/index.php?module=login. However, it seems that I did something wrong. The .htaccess file is located in //localhost/eworkinfo, for reference. Let me know if you guys have any ideas. I have checked my phpinfo() to ensure that mod_rewrite is activated.