Generating URL's on the fly

Don't see why its not possible..

I've even seen one or two sites working on "automagically" creating subdomains... Its a bit of a BS hack, but it worked quite well with BlogSpot i think it was..

eg..
Main Domain : mybroadband.co.za

Dynamic Domain : domain1.mybroadband.co.za
Dynamic Domain : domain2.mybroadband.co.za
 
Don't see why its not possible..

I've even seen one or two sites working on "automagically" creating subdomains... Its a bit of a BS hack, but it worked quite well with BlogSpot i think it was..

eg..
Main Domain : mybroadband.co.za

Dynamic Domain : domain1.mybroadband.co.za
Dynamic Domain : domain2.mybroadband.co.za

Its actually not a hack. You can do it very easily with DNS providers. The one i use has an api that allows you to add subdomains on the fly, obviously there is a bit of a dns update that occurs.
 
Its actually not a hack. You can do it very easily with DNS providers. The one i use has an api that allows you to add subdomains on the fly, obviously there is a bit of a dns update that occurs.

The solution I saw was very much a hack since the "propagation" was immediate...

You would create the subdomain and could reference it from anywhere in the world right then and there.
 
Pretty sure that's exactly what stuff like Django, Rails and others are good for. They're usually backed by some flavour of SQL, but with enough determination you can probably jury-rig it to work with an XML store.
 
Could try a .htaccess on Apache with mod_rewrite to point everything to a PHP script. PHP script then takes requested URI and loads content accordingly. I did this for my file sharing.

Very lazy/messy/shet way to filter so that only http://noa.moe/qclaq gets treated as a file and nothing else like http://noa.moe/steam/
RewriteEngine On
RewriteCond %{REQUEST_URI} !^(/..../)
RewriteCond %{REQUEST_URI} ^(/.....)
RewriteCond %{REQUEST_URI} !^(/......)
RewriteRule ^(.*)$ linkproc.php?filename=$1 [L]
 
Last edited:
Pretty sure that's exactly what stuff like Django, Rails and others are good for. They're usually backed by some flavour of SQL, but with enough determination you can probably jury-rig it to work with an XML store.

Agreed, Rails with dynamic routes will do what you want. Sure there are dozens of other options as well, but I am not a web dev expert.
 
Top
Sign up to the MyBroadband newsletter
X