mod_rewrite php mysql

前端 未结 4 1779
南旧
南旧 2021-01-16 01:03

I\'m really new at mod_rewrite and i have been trying to figure this out but really stuck. p Here is my issue.

I have a page http://example.com/user/?s=81 ?s=81 is

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-16 01:36

    To my knowledge you can not query databases with mod_rewrite.

    how about putting a PHP-script to /user/?s=81, that looks up the user's name in the db and then relocates the user to $url = "/$username"; see PHP's header function passing "Location: $url" to it.

提交回复
热议问题