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 比價王

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

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

分享 歐盟警方與多國聯手掃盪,破獲全球最大DDoS攻擊服務網站

分享 歐盟警方與多國聯手掃盪...

擾人的資安問題啊~

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