Rewrite rule solving,-php Tutorial

Source: Internet
Author: User
Rewrite rule solving, online ............ Is sell_list.php redirected to sellsell_list.php? Is fid1 redirected to selllist? Fid1bencandy. php? Is the fid-55-id-21619-page-1.htm redirected to newsbencandy. php? Fid55 & amp; id21619 ask the experts for help. I will solve the rewrite rules and wait online ............
/Sell_list.php redirects to/targets
/Sell_list.php? Fid = 1 redirect to/assets/list? Fid = 1
/Bencandy. php? The fid-55-id-21619-page-1.htm redirects to/news/bencandy. php? F id = 55 & id = 21619

Please help me. I wrote it many times ..

------ Solution --------------------
PHP code
RewriteEngine on # http://www.aa.com/webapp/sell_list.php? Fid = 111222 RewriteCond % {QUERY_STRING} ^ fid = ([0-9] +) RewriteRule ^ sell_list \. php $ samples/list [L] # http://www.aa.com/webapp/sell_list.phpRewriteRule ^ sell_list \. php $ Pipeline [L] # http://www.aa.com/webapp/bencandy.php? Fid-55-id-21619-page-1.htmRewriteCond % {QUERY_STRING} ^ fid-([0-9] +)-id-([0-9] +)-page-1 \. htmRewriteRule ^ bencandy \. php (. *) $ news/bencandy. php? Fid = % 1 & id = % 2 [L]

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.