PDA

View Full Version : htaccess not working, can't add second redirect



Dabrowski
26 Jan 2011, 12:34 PM
Hi. Actually, I'm sure it is working, but I don't know how to work it.

1. This works fine:

RewriteEngine On

RewriteRule ^bazile$ /img/bazile-final-preview.jpg

When I go to ourdomain.com/bazile it loads content for what's in the img directory named bazile-final-preview.jpg.

I can't seem to add another rule to make a different keyword go to a YouTube video. I would guess it would be something like this:


RewriteEngine On

RewriteRule ^bazile$ /img/bazile-final-preview.jpg
RewriteRule ^keyword$ http://youtube.com/watch=v9090909090

I've tried various permutations and get a combination of 404s, 500s, etc.

What am I not understanding?