I have a new Image and Video uploading website coming soon and my developers will be creating all the code for it soon too (i'll ask them the same question as here aswell) but anyway I wondered if this was possible.. When a user uploads some content they automatically get a Link for it to be used elsewhere or to share etc, well my "domain name + the content file name or extension" would be a very long link to pass around or remember. Would it be possible for the website to use the regular domain however the Links created by the system when a item is uploaded be a completely different domain which I have purchased (becuase its much shorter and easier to remember) Example: Main Domain Name - examplelongname.com/username Second Domain Name - shorturl.com/username Different domains but the outputted link given to the members links to the same content/pages.
Why you don't map your shorter domain name to file hosting ? or buy other new short file hosting name ? The other solution is to upload remotely to short domain name website.The script with long domain name will upload to short name hosting site.
1. You can use your main domain (for better seo results) and create an .htaccess RewriteRule to shorten "the content file name or extension". For ex. examplelongname.com/the-content-file-name-or-extension.php?f=whatever&id=34553 to examplelongname.com/34553 2. Park a secondary domain name (very easy if you are on cpanel server) so your website is accessible on both domains (bad for seo - duplicated content).