I'm trying to simplify my URL. It should recognize each number by page=* and print it like this: localhost/cms_4/page/*
RewriteEngine on
RewriteRule cms_4/([0-9]+) cms_4/index.php?page=$1
Can someone help me?
Oops. I wrote it the wrong way around.
RewriteEngine on
RewriteRule page/([0-9]+) index.php?page=$1
How can I redirect only the index.php file to page/* and not all other files and directories?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.