php - .htaccess rewrite rule for string -



php - .htaccess rewrite rule for string -

i writing rewrite rule url http://hiccuptalks.in/matmatantera/kya-mo-di-bjp-2019-mai-350pahuchegi/41 , rule matmatantera/([0-9a-z-]{3,50})/([0-9])$ matmatanter_answer.php?url=$1&id=$2 [l] when trying access on browser not working.

change rewriterule following:

rewriterule ^matmatantera/([0-9a-z-]{3,50})/([0-9]+)$ matmatanter_answer.php?url=$1&id=$2 [l]

[0-9] match numbers 0-9 once. + tells match [0-9] look 1 time or more.

test on on: http://martinmelin.se/rewrite-rule-tester/

php .htaccess rewrite

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -