php - Language parameter in .htaccess not correctly mapped -
i trying rewrite url:
www.answerme.be/index.php?language=nl
to
www.answerme.be/nl
i've done research , using tool generateit.net.
the look using following:
rewriteengine on rewriterule ^([^/]*)$ /index.php?language=$1 [l]
this should work? getting 500 internal server
error.
you're getting 500 due infinite looping. prepare using improve regex 2 character language in uri:
rewriteengine on rewriterule ^([a-z]{2})/?$ /index.php?language=$1 [l,qsa,nc]
php regex .htaccess mod-rewrite redirect
No comments:
Post a Comment