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

分享 涉貪想落跑?門都沒有!馬來西亞前總理納吉遭限制出境,印尼「度假」計畫泡湯-風傳媒

分享 涉貪想落跑?門都沒有!...

看起來退任元首接受調查然後移至監牢真的不分國界,覺得以後直接在元首辦公處旁蓋一座監牢比較快,然後退任...

分享 沒有網路也可以上Facebook!他們都用「真實版」臉書-風傳媒

分享 沒有網路也可以上Fac...

有時候覺得,沒有社群網路或許才是真正社交的開始~

分享 微軟宣布重大改組!21年老將下台、解散Windows團隊「轉攻2業務」,一段大時代成歷史…-風傳媒

分享 微軟宣布重大改組!21...

階段性任務的結束。

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