Well, I want to have a redirect script on my server.
I want it to take the text after the URL, and redirect it to a website.
The one I have right now looks like this:
<?php
$url = $_GET['url'];
header("Location: http://youtube.com/watch?v=".$url);
?>
That makes the URL looks like : http://mywebsite.com/?url=YOUTUBE CODE HERE
But, I don’t want it to look like that, I want the URL to look like this : http://mywebsite.com/YOUTUBE CODE HERE
and that will redirect the user to the YouTube video.
Thanks
to achieve that, you need to use .htaccess and mod_rewrite on apache, or a similar technology.
basic examle:
/.htaccess:
/v/index.php: