About URL rewriting,

Source: Internet
Author: User
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: xs7k?htaccesssuch as rewriterule=index.html xs7k/in about URL rewriting. hurry up, help, 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.