【发布时间】:2014-11-09 00:41:30
【问题描述】:
我看到href="blaah" 的a 标记的href 属性使用href="blaah.php" 而不是href="blaah.php"。我还看到href=".." 代替了href="index.php"。
我已经在 NGINX 服务器上对此进行了测试,但是,当我托管时,我最终可能会通过 Apache 托管。那么,Apache 是否支持href="blaah"?
【问题讨论】:
-
您指的是一种称为 URL 重写的技术:stackoverflow.com/questions/2433545/…
-
而且大多数时候,可以(并且应该)使用诸如
http://example.com/news/之类的URL 来代替http://example.com/news/index.php。
标签: php html apache nginx hyperlink