0
回答
apache htaccess 写法

源URL

/checkout?token=EC-1HD414459P449773U

想转成 /index.php?page=checkout&token=EC-1HD414459P449773U


RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !/index.php$
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_URI} ^/checkout\?token=(.*)$
RewriteRule (.*) index.php?page=checkout&token=%1 [L]



我这样写不对,请指教
举报
江江小豆
发帖于3年前 0回/144阅
顶部