2013-08-20, 23:19:29
Could always use subfolders with rewrite rules and/or a custom hosts file and use the actual domain on test machine.
What I was going for with my solution ( and it obviosusly doesn't work ) is to get rid of urls all togather, which is what the siteurl hack does, but do it internally for all the pieces.
Its probably better to come up with all the pieces.
Images, images are static and can always be referenced by absolute pathing relative to root /data/uploads etc.
Page links can be relative to page, probably a bad idea as pages can move if fancy urls and path is based on parent and permalink.
Page links can be absolute to site root / but is still dependant on their path, which can be modified by fancy urls and permalinks.
The alternative is to always use id syntax for page linking to slugs, but this might be bad for SEO.
What I was going for with my solution ( and it obviosusly doesn't work ) is to get rid of urls all togather, which is what the siteurl hack does, but do it internally for all the pieces.
Its probably better to come up with all the pieces.
Images, images are static and can always be referenced by absolute pathing relative to root /data/uploads etc.
Page links can be relative to page, probably a bad idea as pages can move if fancy urls and path is based on parent and permalink.
Page links can be absolute to site root / but is still dependant on their path, which can be modified by fancy urls and permalinks.
The alternative is to always use id syntax for page linking to slugs, but this might be bad for SEO.