.htaccess用/ bla替换/?q = bla

时间:2017-03-15 20:16:48

标签: javascript php html apache .htaccess

我在整个互联网上都试图找到这个问题的答案,但它们似乎都不起作用或者不是我想要的。我想要的是让我的网站了解http://example.com/asd表示http://example.com/?q=asd,而不是更改链接。因此,用户会看到http://example.com/asd,但后台会显示GET ?q=asd

基本上,我希望将用户重定向到http://example.com/?q=asd,而不会将其地址栏重定向到该地址栏。

例如,http://example.com/asd - >意思是 - > http://example.com/?q=asd,但地址栏看起来像http://example.com/asd

如果您有任何问题,请发表评论。

1 个答案:

答案 0 :(得分:-1)

ArticleController
相关问题