php - .htaccess rewrite URL not showing correctly? -
i want when write following:
http://boundsblazer.com/user/joe
it internally processes page:
http://boundsblazer.com/user/profile?usr=joe
but keeps old url. however, when write:
http://boundsblazer.com/user/joe
the url becomes:
http://boundsblazer.com/user/profile?usr=joe
i have searched countless threads, , nobody having trouble am. problem when write url, url changes , makes ugly. .htaccess:
rewriteengine on rewriterule ^user/([a-za-z0-9]+)$ http://boundsblazer.com/user/profile.php?usr=$1 [l,qsa]
does know causing problem?
use this:
rewriteengine on rewriterule ^user/([a-za-z0-9]+)$ /user/profile.php?usr=$1 [l,qsa]
the issue using absolute url, instead of relative url, , mod_rewrite performing redirect instead of rewrite.
Comments
Post a Comment