【发布时间】:2016-01-30 00:40:41
【问题描述】:
我想要做的是让链接显示为这样
http://api.example.com/users/useridhere/
每当我尝试进行重写时,都会出现服务器错误。
这是我当前的代码
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ index.php?id=$1 [NC,L]
DirectoryIndex index.php?id=Nobody
如果有人能指出我做错了什么或发布修复,我将不胜感激。
【问题讨论】:
标签: .htaccess apache2 server-error