Rewrite URL in PHP with mod_rewrite

前端 未结 3 1001
夕颜
夕颜 2021-01-28 16:01

The web server is Apache. I want to rewrite URL so a user won\'t know the actual directory. For example: The original URL:

http://www.example.com         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-28 16:35

    I found a fairly well written crash course in doing so here:
    http://articles.sitepoint.com/article/guide-url-rewriting

    You'll need to specify the rules in .htaccess (in your site root).

提交回复
热议问题