One thing I don't like about wordpress : absolute URLs (6 posts)

  1. pembo13
    Posted 3 years ago #

    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?

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

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

  3. pembo13
    Posted 3 years ago #

    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.

  4. WPyogi
    Forum Moderator
    Posted 3 years ago #

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

    Here's one:


  5. pembo13
    Posted 3 years ago #

    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.

  6. pembo13
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic