type="text/css" rel="stylesheet" href=""/>如下示解決辦法:src="">script>
1、修改apache的配置檔案httpd.conf並重啟,如下建立了s.juancdn.com的繫結並支援重寫
documentroot "d:/wamp/www/static"
servername s.juancdn.com
allowoverride all
order allow,deny
allow from all
2、根目錄新增.htaccess
rewriteengine on
rewritecond % !-f
rewritecond % ^(.+)$
rewriterule ^(.*) /index.php [qsa,pt,l]
3、建立入口檔案index.php
<?php
$r = $_server['request_uri'];
preg_match_all("/\/(.*?)\/?\?\?(.*?)(\?.*)/",$r,$matches);
if(!empty($matches)&&!empty($matches[1][0])&&!empty($matches[2][0]))else
if(!empty($matches)&&!empty($matches[3][0]))
include_once("min/index.php");
4、修改配置檔案min/config.php
$min_cachepath = 'c:\\windows\\temp';
5、修改程式的配置檔案conf/test.php【這個不知道需要不】
加入:'.css?'=>'.css',//前端靜態檔案路徑
'.js?'=>'.js',//前端靜態檔案路徑
php類可以多繼承嗎,php支援多繼承嗎
題問php是否支援多繼承?答案 不可以,只支援單繼承。如何實現多繼承呢?inte ce這裡我們就不做過多的說明了,它的原理就是乙個類可以實現多個介面。下面這段 就能夠說明。inte ce test1 public function connect inte ce test2 public funct...
windows系統下Git多賬號支援
ssh keygen t rsa c email xx.com t type縮寫,指定金鑰型別,一種是rsa,一種dsa,預設是rsa c comment縮寫,指定備註資訊 f 可用來指定生成的檔名git config global user.name skysper git config glob...
Dubbo多協議支援
除了dubbo服務暴露協議dubbo協議外,dubbo框架還支援另外8種服務暴露協議 rmi協議 hessian協議 http協議 webservice協議 thrift協議 memcached協議 redis協議 rest協議。但在實際生產中,使用最多的就是dubbo服務暴露協議 小資料大併發使用...