Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relative path vs full path for images and PDF links
#39
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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
RE: Relative path vs full path for images and PDF links - by shawn_a - 2013-08-20, 23:19:29



Users browsing this thread: 3 Guest(s)