All I wanted was to get rid of the index.php in the URL path.
The first is the configuration. htaccess
Rewriteengine Onrewritecond%{request_filename}!-drewritecond%{request_filename}!-fRewriteRule ^ (. *) $ index.php/$1 [Qsa,pt,l]
Because I'm deploying on Apache, I need to find LoadModule rewrite_module in httpd.conf config file modules/mod_rewrite.so remove the previous #, find allowoverride None changes to allowoverride all.
Now access localhost/product valid, but __app__ or __url__ or you get out of the path contains index.php, that is, localhost/index.php, there is a step, need in conf/ Config.php inside Modify or add ' Url_model ' =>2,
And because I was trying to deploy the thinkphp-based Conist Enterprise Edition 2.0, there was a configuration of ' Url_model ' =>c (' token.false_static ') in config.php, and Token.false_ The value of static is set to 1 at initialization, so ... Mode is still 1,pathinfo mode.
In the Sina SAE deployment, does not support. htaccess, only supports its own profile config.yaml, so add the following rewrite format code to CONFIG.YAML:
handle:-rewrite:if (!is_dir () &&!is_file () && path~ "^ (. *) $") goto "index.php/$1"
http://www.bkjia.com/PHPjc/825531.html www.bkjia.com true http://www.bkjia.com/PHPjc/825531.html techarticle all I wanted was to get rid of the index.php in the URL path. The first is the configuration. htaccess ifmodule mod_rewrite.crewriteengine Onrewritecond%{request_filename }!-drewritecond%{request_fi ...