Loading...

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

Temperature: 0 °C

Mark ChangMark Chang
隱藏副檔名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

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

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

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

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

分享 連刪掉的前男友帳號,臉書都幫你存好好?他教你打開臉書個人資料庫,裡面個資多到嚇死人-風傳媒

分享 連刪掉的前男友帳號,臉書都幫你存好好?他教你打開臉書個人資料庫,裡面個資多到嚇死人-風傳媒

看到這篇文章,突然覺得好笑又有趣,試想這些網站平台不紀錄你的個資那要紀錄什麼,這本來就...

分享 「長輩都在上面,我覺得被監視!」年輕人紛紛離開Facebook,誰是繼承者?-風傳媒

分享 「長輩都在上面,我覺得被監視!」年輕人紛紛離開Facebook,誰是繼承者?-風傳媒

社群平台的美意原本應該是提高人與人的互動,但事實上目前看到的大都是人與載具的互動~還曾...

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