Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Apache 的 RewriteRule,我怎样才能让它服务:
mydomain.com/webpage.php?name=home_page
简单地说:
mydomain.com/
实际上没有物理 index.html 文件?
在澄清评论中的问题后,发布者希望“http://mydomain.com”在内部重定向到“http://mydomain.com/webpage.php?name=home_page”(不更改浏览器地址中的 URL酒吧)。将以下内容添加到 .htaccess 应该可以解决问题:
RewriteEngine on RewriteRule ^$ webpage.php?name=home_page [L]