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.
你好我想重写:
example.com/file
至
例子.com
在 htaccess 中我不想将 example.com/file 重定向到 example 但重写。我会在 htaccess 中输入什么谢谢
很简单:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^file$ / [L] </IfModule>