Soldato
I've lost an htaccess file (deleted it because it obviously breaks Apache) and just trying to recreate a simple redirect which was when someone visits:
www.domain.com/w/d7nGhs962
...it directs to...
www.domain.com/w/?v=d7nGhs962
All the examples I can find are the opposite (dirty to clean) and I can't seem to get anything to work by switching them around.
Basically I want the variable - in this case a YouTube ID - to be passed as a variable rather than the browser thinking it's a folder. So far I've got:
RewriteEngine ON
RewriteRule ^/w/(.+) /w/?v=$1 [L]
TIA!
www.domain.com/w/d7nGhs962
...it directs to...
www.domain.com/w/?v=d7nGhs962
All the examples I can find are the opposite (dirty to clean) and I can't seem to get anything to work by switching them around.
Basically I want the variable - in this case a YouTube ID - to be passed as a variable rather than the browser thinking it's a folder. So far I've got:
RewriteEngine ON
RewriteRule ^/w/(.+) /w/?v=$1 [L]
TIA!
Last edited: