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.
我有一个像 www.example.com/xyz 这样的网址,我想将其重定向到 www.example.com/abc
xyz 和 abc 可以是一个长字符串,我应该使用什么 .htaccess 规则?
我假设您的内容已永久移动?:) 在这种情况下,最好在您的 .htaccess 文件中使用永久 (301) 重定向规则
Redirect permanent /xyz http://www.domain.com/abc
或者
Redirect 301 /xyz http://www.domain.com/abc
如果这不能解决您的问题,请指定重定向的性质。乐意效劳!