Quick Tip: Develop using Subdomains
Here is a quick tip I recently learned that may be obvious to some, but I never really thought about it at the time. I was creating an application online and purchased a new domain, where I then created a folder appropriately named /beta/.
However, once you are ready to either a: put this application in your root directory (/) or b: package it up for distribution you will need to change any relative paths that include /beta/, in the CSS, the JavaScript and of course the HTML.
If I was to have started off with using a subdomain (beta.mydomain.com) then I wouldn’t have to change any paths as all relative paths would simply be root (/). This will clearly save you a good 5minutes of Find & Replace, but then you do not have to worry about testing and making sure you managed to change them all!