Strahan Posted April 23, 2012 Share Posted April 23, 2012 I was wanting to make my own version of TinyURL for my personal use. So far, the only way I can get it to work as trim as possible is using the format: http://www.mysite.com/?tag TinyURL can do http://tinyurl.com/tag instead. I know dropping the ? is a trifling thing, but I'd like to figure out how they did it. I could do it by just creating subfolders and dropping an index.php in there that does a redirect, but I wasn't sure if there was a more efficient way....? Quote Link to comment https://forums.phpfreaks.com/topic/261486-grabbing-subfolder-info-like-tinyurl-does/ Share on other sites More sharing options...
Jessica Posted April 23, 2012 Share Posted April 23, 2012 .htaccess mod_rewrite Quote Link to comment https://forums.phpfreaks.com/topic/261486-grabbing-subfolder-info-like-tinyurl-does/#findComment-1339905 Share on other sites More sharing options...
Strahan Posted April 25, 2012 Author Share Posted April 25, 2012 Sweet, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/261486-grabbing-subfolder-info-like-tinyurl-does/#findComment-1340500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.