If you're serving via Apache, you'll want to look at mod_rewrite
.
Using mod_rewrite
, you can modify how URLs are mapped to your application's actual end-points. For your example, you'll want something like this:
RewriteEngine on
RewriteRule ^/?page/(.*)$ page.php/$1 [L]
This page has some other simple examples.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…