I have a list of long urls like http://example.com/index.php?action=referralcode=5478 about 5000 of those. I would like to purchase a domain and then rewrite those 5000 plus URL's to http://exampleshortdomain/5478 and redirect it to http://example.com/index.php?action=referralcode=5478 something like that is it possible? thanks
Could you not get your domain, create 5000 folders e.g yourdomain/public_htm/5478/ and so on. Then create a simple index.html file for each with a simple redirect code such as: Place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code. <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> The above HTML redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.
yes it's possible, just find a programmed which would make that possible, and a web host which allows to do such things easy as 2x2
Y, mod_rewrite http://exampleshortdomain/5478 to http://example.com/redirect.php?id=5478 And store these 5000 lines to an array, redirect.php redirects to the id-th url of array.
this is very easy to do. What you need is to use a url shortening script. Just search for some free ones and use those. A few that I found: http://www.hido.net/projects/phurl/
No need to call a programmer In .htaccess RewriteEngine On RewriteRule ^/([0-9]+)/$ http://example.com/index.php?action=referralcode=$1 Code (markup): All hits to www.domain.com/34525/ ---> http://example.com/index.php?action=referralcode=3425
I'm not sure I understand the problem here. jmf000's suggestion will work perfectly with what I understand the problem to be so I must have understood the problem wrong. Unless you're referring to the fact that jmf000 forgot to put [R] after the rewrite rule to make it a redirect.