thinkphp in the page when the URL rewrite encountered when the problem, more a slash

Source: Internet
Author: User
This post was last edited by wadelin511 on 2013-06-06 12:04:09

thinkphp Paging URL Rewrite


The pages that could have been
The URL is as follows
App/index.php/search/recommendgoods/shop_id/1/p/2

After the URL rewrite, after masking off the index.php, it becomes the following format

App/search/recommendgoods//s HOP_ID/1/P/2

In addition, it is strange that part of the page is not a problem, part of the page is more than a slash.

The thinkphp is configured as follows:
Url_model set to 2

The. htaccess file is configured to

Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]


Please help the hero to solve the problem. Thank you, sir.


Reply to discussion (solution)

Help, online, etc!

has been resolved. The $page->parameter is not set in page turn processing.

  • 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.