I am anxious about URL rewriting. I have used brophp, a brother-in-law framework, for example, online. Everything is okay locally, but it won't work if it is uploaded to the server: xs7k1_htaccesssuch as rewriterule1_index.html xs7kindex. phpRewriteRule ^ cata ([1-9] d * character .html xs7kindex. phpca about URL rewriting, urgent, life-saving, online, etc.
I used brophp, a brother-connected framework.
Everything is okay locally, but it won't work if it is uploaded to the server.
Project: xs7k
The local htaccess is as follows:
RewriteRule rule index.html xs7k/index. php
RewriteRule ^ cata/([1-9] \ d * pai.html xs7k/index. php/cata/index/id/$1
.............
Http: // localhost/xs7k/cata/1.html
Corresponding
Http: // localhost/xs7k/index. php/cata/index/id/1
OK
.............
Upload to server to change
RewriteRule into index.html index. php
RewriteRule ^ cata/([1-9] \ d * character .html index. php/cata/index/id/$1
Run:
Http://www.xs7k.com/cata/1.html has been on the home page (that is, there is a problem here, should be corresponding to the following page)
Http://www.xs7k.com/index.php/cata/index/id/1 this is correct
The homepage is OK, but nothing else works. The homepage displays the following message: the currently accessed controller class is in the project application directory :. /home/controls/index. class. php file!
------ Solution --------------------
Discussion
I used brophp, a brother-connected framework.
Everything is okay locally, but it won't work if it is uploaded to the server.
Project: xs7k
The local htaccess is as follows:
RewriteRule rule index.html xs7k/index. php
RewriteRule ^ cata/([1-9] \ d * pai.html xs7k/index. php/cata/index/id/$1
.................
------ Solution --------------------
Url path of the framework