I'm looking to shorten some links, by re-directing. I'm wondering what the best way to do this is: I have files at www.mysite.com/qr/quicklinks/User/ but I'm wondering if it's possible to somehow make it so it's just www.mysite.com/user? This would be brilliant if it can be done and possibly in PHP too? I've tried a few things but nothing seems to be working.
Use a .htaccess file and mod_rewrite:
Depending on the server, that's case-sensitive. Adjust the URL if necessary.
If that fails, try this PHP code:
It won't support wildcard files though.
You know you can just use Bit.ly for free and they have an api where your site can generate URLs.