Apache 协助使用重写规则
我希望URL看起来像Apache 协助使用重写规则,apache,.htaccess,Apache,.htaccess,我希望URL看起来像www.example.com/chat/91,但实际上页面是www.example.com/room.php?id=91,我在网上搜索了apache rewrite example,但我没有看到任何使用这种格式的示例,在文件中使用此RewriteRule RewriteEngine On RewriteRule ^chat/([^/]*)$ /room.php?id=$1 [L] 在测试之前,请确保清除缓存。可能的重复项您可以发布您迄今为止尝试过的内容吗?
www.example.com/chat/91
,但实际上页面是www.example.com/room.php?id=91
,我在网上搜索了apache rewrite example
,但我没有看到任何使用这种格式的示例,在文件中使用此RewriteRule
RewriteEngine On
RewriteRule ^chat/([^/]*)$ /room.php?id=$1 [L]
在测试之前,请确保清除缓存。可能的重复项您可以发布您迄今为止尝试过的内容吗?