WordPress.org

Support

Support » How-To and Troubleshooting » One thing I don't like about wordpress : absolute URLs

One thing I don't like about wordpress : absolute URLs

  • pembo13

    @pembo13

    My primary annoyance with WordPress at a platform/tool is the insistence on absolute URLs everywhere (ie. http://example.com/path instead of /path).

    Can someone explain this to me? It has only ever cause issues for me. Is there any way to stop it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    In which circumstance do you need to use the domain name within the URL path?

    pembo13

    @pembo13

    I rarely need to use it, hence why having it there has never been useful. When I do notice it is when I change a domain, or otherwise.

    To rephrase: it’s never been helpful to me.

    WPyogi

    @wpyogi

    Forum Moderator

    This has been widely debated and discussed, here and elsewhere…

    Here’s one:

    http://yoast.com/relative-urls-issues/

    pembo13

    @pembo13

    This article is a bit unfortunate as it complete segments the issue. I am not asking for calculation of minimum relative urls like they referenced, (eg: ../contact) or similar. I’m just saying leave out the domain.

    Let me rephrase: absolute paths are fine. Absolute URls have no benefit.

    WordPress can do canonical 301 redirects without throwing the domain on every single resource in a page.

    I have a site with about 80 occurrences of “http://domain.tld” on every page.

    pembo13

    @pembo13

    Just to restate the issue. Why not absolute paths instead of absolute URLs? Why does the HTML need full URLs for internal links?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘One thing I don't like about wordpress : absolute URLs’ is closed to new replies.
Skip to toolbar