Because the server to rewrite the rules in CRMEB cause and solutions of 404

Problem Description:
After installing CRMEB, only through https: // domain name //index.php/admin access to the background, and not directly by https: // domain name / admin access to the background that led to emergence of some backstage access to the system function interface is available, and some abnormal functional interface server 404 or the like appears, from the point of view browser is the reason leading to the path of respect, the actual reason is not open to rewrite apache module caused.

Solutions to problems:
first, .htaccess (the root directory has a .htaccess, this should be consistent with the follows)

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

Second, open rewrite rewrite

sudo a2enmod rewrite
/etc/init.d/apache2 restart

Reference solutions to problems:
the Apache open rewrite rewrite

Guess you like

Origin www.cnblogs.com/youcong/p/10925341.html