• 靜態優化設置
  • 推文至Facebook  
  • 建立.htaccess

     

    寫入

    PHP_FLAG output_buffering On
    RewriteEngine on
    RewriteBase /
    RewriteRule ^state-([0-9]*).html state.php?hid=$1
    RewriteRule ^statelist-([0-9]*).html statelist.php?cid=$1
    RewriteRule ^news-([0-9]*).html news.php?id=$1

     

    在列表頁面就可以看到本來是

    http://domain/state.php?id=X

    變成偽靜態網址

    http://domain/state-X.html

     

     

    後台設置方法

    服務器設置->靜態優化打開即可

    新竹網頁設計,竹北網頁設計,竹南網頁設計,中壢網頁設計,網頁設計,免費模板,免費網頁套件,架設網站,網站架設 ,修改模板,主機代管,Android App

  • 標籤:NetYea, html, htacess, 公司形象網站, 靜態優化,
NetYea 客服 NetYea 客服
NetYea 客服

靜態優化設置 -