Convert rewrite regular 301

Source: Internet
Author: User
Rewrite regular 301 switch to RewriteCond ^ \/index. php. * $ [NC] RewriteRule ^ \/index. php? A = ([0-9] +) & amp; B = ([0-9] {1}) & amp; c = ([0-9] +) $ http://zufang.sslook.co rewrite regular 301 redirection
RewriteCond ^ \/index. php. * $ [NC]
RewriteRule ^ \/index. php? A = ([0-9] +) & B = ([0-9] {1}) & c = ([0-9] +) $ http://zufang.sslook.com/4241/%2/%3 [R = 301, L]

What the above regular expression wants to do is, visit website URL for http://zufang.sslook.com/index.php? A = 1 & B = 2 & c = 3 automatically jump to the page http://zufang.sslook.com/1/2/3


How can I write this? Writing and writing failed.

------ Solution --------------------
RewriteCond % {QUERY_STRING} ^ (. *) $
RewriteRule ^ ([0-9] +) \/([0-9] {1}) \/([0-9] +) $/test. php? A = $1 & B = $2 & c = $3 [L, NC]


Tested for you, useful, such as fake warranty

After you change the URL to [R = 301, L], the URL will be changed. with my URL, the URL will remain unchanged.
------ Solution --------------------
# The third floor is correct. the landlord reversed it.
------ Solution --------------------
Of course you have reversed it!
It should be
Enter the http://zufang.sslook.com/1/2/3 URL in the browser
Just execute http://zufang.sslook.com/index.php? A = 1 & B = 2 & c = 3

The url rewriting result is for the server and will not be returned to the address bar of the browser.

If a dynamic url has been written to your page, replace the dynamic address with the static address before the page output.

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.