我想补充友好的URL到我的网站。但我有一个问题。我从来没有使用的.htaccess。
I would like to add friendly URL's to my website. But I have one problem. I've never used .htaccess.
我的链接:
https://example.com/index.php?page=users
我想有一个这样的网址:
I would like to have an URL like this:
https://example.com/page/users
或
https://example.com/users
是否有任何人谁可以帮我?
Is there anyone who can help me?
问题解决了:
的.htaccess:
.htaccess:
RewriteEngine On
RewriteRule ^([^/.]+)/?$ index.php?page=$1
所以这是非常简单的。
So it is very simple.