Because the development environment uses the LIGHTTPD server, my native environment uses the Apache configuration, causes the deployment to the development machine, all links address all jumps to the homepage.
Analysis of the next, Index.php/controller/function, controller is not effective, should be the reason for routing distribution.
To configure URL rewrite rules for LIGHTTPD configuration:
1 2 3 4 5 |
Url.rewrite-once = ("/(. *). * "=>" $ ","/(Css|files|img|js|stats)/"=>" $ "," ^/([^.] +) $ "=>"/index.php/$1 ") |
The Apache URL Rewrite rule is also attached:
1 2 3 4 5 6 7 8 9 10 11-12 |
<virtualhost *:80> proxypreservehost on DocumentRoot "D:/program files/xampp/htdocs/xxx" ServerName xxx.baidu.com directoryindex index.php <directory "D:/program files/xampp/htdocs/xxx" > Options Indexes FollowSymLinks allowoverride All order Allow,deny allow from all </Directory> </VirtualHost> |
Restart LIGHTTPD service, ok!