Forum Moderators: phranque
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^url/(.*)\s(.*)/$ http://www.example.info/url/$1$2/ [R=301,L]
RewriteRule ^url/([^.]+)/$ index.php?url=$1 [L]
RewriteRule ^link/([^.]+)/$ free_youtube_video_exposure.php?url=$1 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php\?url=http\%3A\%2F\%2Fwww\.youtube\.com\%2Fwatch\%3Fv\%3D([^\ ]+)\ HTTP/
RewriteRule ^index\.php$ http://www.example.info/url/%1/? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php\?url=([^\ ]+)\ HTTP/
RewriteRule ^index\.php$ http://www.example.info/url/%1/? [R=301,L]
# comment before each rule block explaining exactly what it does. This is for 6 or 12 months later when you look back at the file and suddenty it's not so clear what it all does.