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

分享 499之亂》員工倒在最前線?中華電信子公司宏華國際:加班費加倍發給-風傳媒

分享 499之亂》員工倒在最...

我其實很想知道身邊的朋友到底有多少人去排了XD

分享 一隻一塊錢!泰勞興奮狂抓「荔枝椿象」 大讚:超級好吃

分享 一隻一塊錢!泰勞興奮狂...

真的假的@@ 不過我想,如果真可以說服人們吃了荔枝椿象可以養身或強健體魄,我相信這個物種很快就會滅絕...

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