7.\u79fb\u52a8\u7248\u6a21\u677f\u4e2d\u4f7f\u7528\u6807\u7b7e<\/strong><\/p>\n\u538b\u7f29\u5305\u91cc\u9762\u7684\u624b\u673a\u6a21\u677f\u90fd\u662f\u9ed8\u8ba4\u7684\u624b\u673a\u6a21\u677f\uff0c\u5982\u679c\u51fa\u73b0\u6837\u5f0f\u95ee\u9898\u6216\u8005\u662f\u6570\u636e\u8c03\u7528\u4e0d\u51fa\u6765\u3002\u4f60\u53ef\u4ee5\u6309\u7167\u4e0b\u9762\u7684\u65b9\u6cd5\u4fee\u6539\u4f60\u7684\u624b\u673a\u6a21\u677f<\/p>\n
css\uff0cjs\uff0cimages\u6539\u6210\u7edd\u5bf9\u8def\u5f84\uff0c\u4f8b\u5982assets \/ css \/\u6539\u6210\/ assets \/ css \/<\/p>\n
index.php\u6539\u6210{dede\uff1aglobal.cfg_mobile \/}<\/p>\n
list.php\uff1ftid = [field\uff1aid \/]\u6539\u6210[field\uff1atypelink \/]<\/p>\n
list.php\uff1ftid =\u301cid\u301c\u6539\u6210\u301ctypelink\u301c<\/p>\n
list.php\uff1ftid = {dede\uff1afield name ='id'\/}\u6539\u6210{dede\uff1afield.typeurl \/}<\/p>\n
view.php\uff1faid = [field\uff1aid \/]\u6539\u6210[field\uff1aarcurl \/]<\/p>\n
[field\uff1alitpic \/]\u6539\u6210[field\uff1aglobal.cfg_basehost \/] [field\uff1alitpic \/]<\/p>\n
[field\uff1aimage \/]\u6539\u6210<img src =\u201c[field\uff1aglobal.cfg_basehost \/] [field\uff1alitpic \/]\u201d><\/p>\n
\u5185\u5bb9\u9875\u91cc\u7684
\n{dede:field.body\/}
\n\u6539\u6210<\/p>\n
{dede:field.body runphp=yes}\r\nglobal $cfg_basehost;\r\n$str = @me;\r\n$search = '\/(<img.*?)width=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\/\/\u8fc7\u6ee4img\u91cc\u7684width\r\n$search1 = '\/(<img.*?)height=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\/\/\u8fc7\u6ee4img\u91cc\u7684height\r\n$search2 = '#(<img.*?style=\".*?)width:\\d+px;([^\"]*?.*?>)#i';\/\/\u8fc7\u6ee4img\u91ccstyle\u7684width\r\n$search3 = '#(<img.*?style=\".*?)height:\\d+px;([^\"]*?.*?>)#i';\/\/\u8fc7\u6ee4img\u91ccstyle\u7684height\r\n$content = preg_replace($search,'$1$3',$str);\r\n$content = preg_replace($search1,'$1$3',$content);\r\n$content = preg_replace($search2,'$1$2',$content);\r\n$content = preg_replace($search3,'$1$2',$content);\r\n@me = $content;\r\n@me = str_replace('http:\/\/www.dedediy.com\/uploads\/allimg\/', $cfg_basehost.'http:\/\/www.dedediy.com\/uploads\/allimg\/', $content);\/\/\u624b\u673a\u7248\u56fe\u7247\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\r\n{\/dede:field.body}<\/code><\/pre>\n\u5176\u4ed6\u6807\u7b7e\u8ddf\u7535\u8111\u7248\u4e00\u6837<\/p>\n
8.\u79fb\u52a8\u7248\u4f2a\u9759\u6001\u89c4\u5219<\/strong> apache<\/strong><\/p>\n.htaccess\u00a0 \u653e\u5230m\u6587\u4ef6\u5939\u4e0b<\/p>\n
\u6ce8\u610f\u680f\u76ee\u3010\u5217\u8868\u547d\u540d\u89c4\u5219\u3011\u8981\u5bf9\u5e94\u4f2a\u9759\u6001\u680f\u76ee\u5206\u9875\u89c4\u5219\u548c\\include\\arc.listview.class.php\u91cc\u9762\u7684\u5206\u9875\u89c4\u5219\u3002<\/p>\n
<\/p>\n
<\/p>\n
apache\u4f2a\u9759\u6001\u89c4\u5219<\/h2>\n#dedecms\u79fb\u52a8\u7248\u4f2a\u9759\u6001\r\nRewriteEngine On\r\nRewriteBase \/\r\n\r\n#\u79fb\u52a8\u7248\u5217\u8868\u680f\u76ee\r\nRewriteRule ^(.*)\/$ \/list.php?tid=$1\r\n#\u79fb\u52a8\u7248\u5217\u8868\u680f\u76ee\u5206\u9875\r\nRewriteRule ^(.*)\/list_([0-9]+)_([0-9]+)\\.html$ \/list.php?tid=$1&PageNo=$2\r\n#\u79fb\u52a8\u7248\u6587\u7ae0\u9875\u4f2a\u9759\u6001\u89c4\u5219\r\nRewriteRule ^(.*)\/([0-9]+)\\.html$ \/view.php?aid=$1<\/code><\/pre>\nNgix\u4f2a\u9759\u6001\u89c4\u5219<\/h2>\nlocation \/ {\r\n\trewrite \"^\/index.html$\" \/index.php last;\r\n\trewrite \"^\/(.*)\/$\" \/list.php?tid=$1 last;\r\n\trewrite \"^\/(.*)st_([0-9]+)_([0-9]+)\\.html$\" \/list.php?tid=$1&PageNo=$2 last;\r\n\trewrite \"^\/(.*)\/([0-9]+)\\.html$\" \/view.php?aid=$1 last;\r\n}<\/code><\/pre>\n <\/p>\n
9.\u7535\u8111\u7248\u8df3\u8f6c\u5230\u79fb\u52a8\u7248\u4ee3\u7801<\/strong>
\n1)\u9996\u9875<\/p>\n<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobile\/}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobile\/}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n2)\u5217\u8868<\/p>\n
<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobileurl\/}{dede:type}[field:typeurl\/]{\/dede:type}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobileurl\/}{dede:type}[field:typeurl\/]{\/dede:type}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n3)\u5185\u5bb9<\/p>\n
<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobile\/}{dede:field.id runphp=yes}$result=GetOneArchive(@me);@me=$result['arcurl'];{\/dede:field.id}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobile\/}{dede:field.id runphp=yes}$result=GetOneArchive(@me);@me=$result['arcurl'];{\/dede:field.id}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n\u5b8c\u6210\u3002<\/strong><\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u4e0b\u9762\u6559\u7a0b\u662f\u9488\u5bf9\u7535\u8111\u7aef\u662f\u751f\u6210\u9759\u6001\u800c\u624b\u673a\u7aef\u662f\u52a8\u6001\u7684\u60c5\u51b5\u4e0b\u7684\u4f2a\u9759\u6001(\u6ce8\u610f\uff1a\u5982\u679c\u60a8\u7528\u7684\u865a\u62df\u4e3b\u673a\u6ca1\u6709\u4e8c\u7ea7\u76ee\u5f55\u7ed1\u5b9a\u57df\u540d\u7684\u8bdd […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[330,329,180],"class_list":["post-1157","post","type-post","status-publish","format-standard","hentry","category-web","tag-330","tag-329","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1157"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1157\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}