动态子域名.htaccess和php

时间:2018-06-14 17:13:57

标签: php .htaccess

我想创建一种链接目录。我正在努力解决以下问题:

我希望能够创建子域名。我想用.htaccess文件(如果可能的话)实现这个目的。我无法访问我的网络服务器来更改apache的内容。

我想要这样的网址:

RewriteEngine On
RewriteCond %{HTTP_HOST} (.*)\.domain\.com [NC]
RewriteRule ^(.*)$ http://domain\.com/daughter.php?d=%1 [L]

我尝试了以下操作,但这根本不起作用:

#banner {
  position: relative;
  overflow: hidden;
font-family: sans-serif;
font-size: 40pt;
font-weight: bold;
background: #ccc
}
.inner {
background: #000;
color:#fff;
mix-blend-mode: multiply;
 }
#banner::before {
  content: '';
  position: absolute;
  background: #0f0;
  width: 100%;
  bottom: 0;
  animation: wipe 5s cubic-bezier(.2,.6,.8,.4) forwards;
}

@keyframes wipe {
  0% {
    height: 0;
  }
  100% {
    height: 73%;
  }
}

有没有人有想法?

0 个答案:

没有答案
相关问题