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

使用javascript 正規化判斷網址url是否正確

使用javascript 正...

使用javascript判斷網址url是否正確 正規化方式如下: var str = URL; //...

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

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

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

分享 首度載人試飛成功!日本新創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