Loading...

利用.htaccess隱藏副檔名html和php

Temperature: 0 °C

Mark ChangMark Chang
author_tools

隱藏副檔名html

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

隱藏副檔名php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

 

https://innstory.com/story-利用htaccess隱藏副檔名html和php-1973
apache

Prev
 JavaScript_取得今天日期

Next
在PHP中通過POST發送JSON 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

分享 刺激銷量? 市場再傳蘋果計畫推出紅色款 iPhone X - 手機新聞 | ePrice 比價王

分享 刺激銷量? 市場再傳蘋...

紅蘋果都要出來了...意思是說以後還有可能有青蘋果嗎? 所以光用顏色就可以刺激到銷量~果然....人...

分享 【東京奧運開幕典禮】超級變變變!超創意呈現1964年的50個靜態項目圖標

分享 【東京奧運開幕典禮】超...

我從小就是超級變變變的迷,這次的東京奧運真的好有創意啊~ 最後如果亮燈了~阿欽出來就更讚了

分享 成功人士剛起步時,和一般人的差異並不大!現代網路之父安德森給

分享 成功人士剛起步時,和一...

#原來成功的密碼就在宅男啊 #要成功先要懂得宅男的心 #所以我就說當初應該要寫跟美女有關的系統的

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format