doudi4014 2014-02-11 21:15
浏览 91
已采纳

将子域重定向到cloudflare上的url

I need to set up a subdomain to redirect to a specific URL, not another domain. I'm using cloudflare.

I tried to do this by creating an A record pointing to the IP of the server and then I created a Page Rule which redirects from my subdomain to a specific address.

Can anyone help me with this? I'm totally lost, I find information on this anywhere.

thanks

  • 写回答

3条回答 默认 最新

  • douli1854 2014-02-11 21:23
    关注

    Maybe it will be easier to make redirection with rewrite rules through .htaccess or virtual host configuration?

    • At Cloudflare CP: create A record for subdomain in DNS section (if you don't have * A record already)
    • At webserver: configure virtual host or/and add rewrite rules to redirect to needed URL
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序