直接在httpd.conf中添加以下代码即可:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost  ##访问域名

RewriteEngine on
RewriteRule ^(.*) http://www.baidu.com  ##跳转地址
</VirtualHost>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-01-04
  • 2021-12-24
  • 2021-06-16
  • 2021-08-19
  • 2022-01-06
猜你喜欢
  • 2021-12-19
  • 2021-10-08
  • 2022-12-23
  • 2021-08-30
  • 2021-07-17
  • 2021-08-24
  • 2021-12-31
相关资源
相似解决方案