Can I do an if/then/else in htaccess?

后端 未结 5 800
名媛妹妹
名媛妹妹 2020-12-19 07:42

I have a site that serves up certain content based on the subdomain. So it is the same set of files, and maybe the header and some info in the site pages changes based on t

5条回答
  •  执念已碎
    2020-12-19 07:47

    which webserver are you using?

    a technique that may work on several different servers (it certainly works in apache) is to have a different .htaccess file in the directory corresponding to each subdomain.

提交回复
热议问题