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

使用Google提供的檢查網頁工具檢查是否為惡意網站

使用Google提供的檢查網...

macbook5 隨著前幾天台積電發生的資安問題~導致生產線停擺,預估對第季營收影響從%降至% 突然...

分享 新身分證意外引發統獨之爭 花敬群:大家都想太多了-風傳媒

分享 新身分證意外引發統獨之...

我其實也好想要有印有「台灣國民 」字樣的身分證。

分享 有神快拜!日手作達人做出會「寫時間」的機器人手錶,超精緻根本可以直接拿去賣!-風傳媒

分享 有神快拜!日手作達人做...

好特別啊~設計這種機器人真的是有別於一般先進科技的有趣。

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