How to use. htaccess make non-pseudo static page 301 jump to pseudo static page and then jump? This is a comparison of egg pain jump. Cause the page won't open because it's a dead loop. Fortunately, the problem was finally resolved. Record and share it, and give reference to the friends who need it.
The rules are as follows:
Rewriterule ^article-([0-9]+). html$/article.php?id=$1&r=1 [L]
Rewritecond%{query_string} ^id= ([0-9]+) $ [NC ]
rewriterule ^article.php$/articlel-%1.html? [l,r=301]
Attention:
To create a. htaccess file, Windows does not allow files to be named. At the beginning, we can use Ue/editplus and other tools to save as. htaccess to achieve.
After creation, modify the. htaccess file content for your program corresponding to the pseudo static rules, uploaded to the program file directory can be implemented. Here's the program file directory look at the FTP directory structure. Here are some rules for common programs