Friday, 15 January 2010

php - HTACCESS Don't Redirect With Parameters -



php - HTACCESS Don't Redirect With Parameters -

i got line of code:

rewriterule artistprofile.php rewrite.php?$1 [r=301,l]

but redirection not work accordingly,

http://domain.com/artistprofile.php?displayname=bryan+wong redirected http://domain.com/rewrite.php?/

i expecting http://domain.com?displayname=bryan+wong

please help!

you have utilize qsa flag, this:

rewriterule artistprofile.php rewrite.php [r=301,l,qsa]

now, url http://domain.com/artistprofile.php?displayname=bryan+wong redirected http://domain.com/rewrite.php?displayname=bryan+wong.

php apache .htaccess

No comments:

Post a Comment