Php rewrite rules: www.baidu.com/2/baidu/p5
How to write such rewrite rules, that is,. HTACCESS, baidu is not a folder but also a parameter, p5 is a parameter,
# RewriteRule ^. *-([0-9] {1,}) \/baidu/p ([0-9] {1,}) $ index. php? What I wrote conflicts with other rewrite rules. how can I use parameters with backslashes as links?
Reply to discussion (solution)
RewriteRule ^[^/]*\/(\d{1,})\/baidu\/(p\d{1,})$ index.php?baidu=$1&p=$2
Well, thank you for your answer. I hope you can find the girl on your profile picture.
Well, thank you for your answer. I hope you can find the girl on your profile picture. [/Quote
This is a bit difficult
RewriteRule ^[^/]*\/(\d{1,})\/baidu\/(p\d{1,})$ index.php?baidu=$1&p=$2
My friend, how can I put this in my. htacess? the parsing error occurs when a backslash is added. is it in conflict with other RewriteRule,
For example
Well, thank you for your answer. I hope you can find the girl on your profile picture. [/Quote
This is a bit difficult
It's okay. the pursuit is good. well, let's analyze the problem above,
My friend, how can I put this in my. htacess? the parsing error occurs when a backslash is added. is it in conflict with other RewriteRule,
For example
This is not clear.
Oh, okay. let me see it again.
What does {1,} mean?
What does {1,} mean?
Match 1 to Infinity
Yes, it is normal now that CSS reference is not normal,