使用.htaccess清理URL

使用.htaccess清理URL,.htaccess,.htaccess,我正在制作一个网站,我有一个侧面视图,看起来像这样: localhost:8080/profile?username=ImSchnebz localhost:8080/profile/ImSchnebz 但我希望它看起来像这样: localhost:8080/profile?username=ImSchnebz localhost:8080/profile/ImSchnebz 我到处都在找,但我不知道怎么做。你到处都在找吗?这里有这样的问题。@LinusKleen我也试过了,我只收到了5

我正在制作一个网站,我有一个侧面视图,看起来像这样:

localhost:8080/profile?username=ImSchnebz
localhost:8080/profile/ImSchnebz
但我希望它看起来像这样:

localhost:8080/profile?username=ImSchnebz
localhost:8080/profile/ImSchnebz

我到处都在找,但我不知道怎么做。

你到处都在找吗?这里有这样的问题。@LinusKleen我也试过了,我只收到了500个内部服务器错误,这毫无意义。您将得到与现有问题类似的答案,这将导致服务器错误。所以真正的问题是,为什么会有HTTP 500错误。对吗?@LinusKleen基本上是的