.htaccess shorten URL using php $_GET

后端 未结 2 791
一个人的身影
一个人的身影 2021-01-06 03:39

I need to be able to shorten my page from:

mydomain.com/mixtape.php?mixid=(WHATEVER NUMBER)

To:

mydomain.com/m/(WHATEVER NU         


        
2条回答
  •  天涯浪人
    2021-01-06 03:45

    RewriteRule ^m/([0-9]+)$ /mixtape.php?mixid=$1
    

    Put in before or after the existing rule. Should not cause any conflict.

提交回复
热议问题