Niks Niks - 1 year ago 80
Apache Configuration Question

How to mod_rewrite "?u="

I would like to rewrite from


This is what im using now:

RewriteEngine On
RewriteRule ^embed/?$ \/plugins\/mediaplayer\/site\/\_embed\.php [NC,L]


How to rewrite ?u= ?


Answer Source

Assuming your hashing algorithm only involves letters a-z and numbers 0-9..

RewriteBase /
RewriteRule ^embed/([a-z0-9]+)$ plugins/mediaplayer/site/_embed.php?u=$1
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download