我想通过.htaccess更改我的网址这里是我正在尝试的所有代码。 我为同一页写了2个代码,在第二页我正在添加模式变量,但它显示我这样:
free/english-lession/learn-about-influential-people&mode=advanced
Options -Indexes
<IfModule mod_rewrite.c>
Options +MultiViews
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteCond %{THE_REQUEST} ^(GET|POST)\ /page\?type=(.*)&lang=(.*)&id=(.*)\ HTTP
RewriteRule ^ /page/%2/%3/%4\? [R,L]
RewriteCond %{THE_REQUEST} ^(GET|POST)\ /page\?type=(.*)&lang=(.*)&id=(.*)&mode=(.*)\ HTTP
RewriteRule ^ /page/%2/%3/%4/%5\? [R,L]
</IfModule>