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

線上CSS壓縮工具CSS Compressor

線上CSS壓縮工具CSS C...

CSS是一種串接式表單階層式樣式表,主要是用來定義UI的顏色字體大小排列方式等等。 隨著CSS越來越...

分享 缺電救星出現了?日本開發「颱風發電機」,一場颱風就蘊藏50年電力,不用實在太浪費!-風傳媒

分享 缺電救星出現了?日本開...

這也是一種跟大自然和平共處的方式~ 真心覺得是一個很棒的發明,不但可以有效利用大自然的力量,也許有朝...

分享 Garmin將台灣列國家「被道歉」 他嘆:將台灣除名何其諷刺 - 國際 - 自由時報電子報

分享 Garmin將台灣列國...

為什麼會被欺負,不夠強大?不夠團結?又或者不被別人認同,甚至不被以為的自己人認同?

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