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

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

分享 喝咖啡會致癌?!加州法院裁定:咖啡供應商應標明罹癌警語-風傳媒

分享 喝咖啡會致癌?!加州法院裁定:咖啡供應商應標明罹癌警語-風傳媒

好可怕啊~快先喝一杯壓壓驚。...

分享 首度載人試飛成功!日本新創SkyDrive拚2023年造出飛天計程車、30年後人人可搭|數位時代

分享 首度載人試飛成功!日本新創SkyDrive拚2023年造出飛天計程車、30年後人人可搭|數位時代

歡迎來到小叮噹的時代。 只是還要年,看來我是享受不到這樣的服務了。...

分享 猴子自拍照爭議落幕了,美上訴法院:猴子沒有著作權

分享 猴子自拍照爭議落幕了,美上訴法院:猴子沒有著作權

總之,全都是人搞出來的。 而牽扯到人的問題永遠都是複雜。...

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