Hide Page Extensions (Like StackOverflow)

前端 未结 6 1312
故里飘歌
故里飘歌 2020-12-07 04:42

I want to hide page extensions like stackoverflow does. How does the following work?

http://stackoverflow.com/tags/foo
http://stackoverflow.com/tags/bar
         


        
6条回答
  •  暖寄归人
    2020-12-07 04:57

    What you want is clean URLS and you can do it with apache and .htaccess . There may be a better way, but here's how I have been doing it:

    http://evolt.org/Making_clean_URLs_with_Apache_and_PHP

提交回复
热议问题