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

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

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

擾人的資安問題啊~

使用javascript 正規化判斷網址url是否正確

使用javascript 正...

使用javascript判斷網址url是否正確 正規化方式如下: var str = URL; //...

分享 春假沒事做嗎?來來來,微軟手把手教你開發人工智慧應用

分享 春假沒事做嗎?來來來,...

沒事做??其實休假比較想出去走走或是好好懶散一下~ 我真的沒那麼上進!!

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