Viewing 3 replies - 1 through 3 (of 3 total)
  • The slash at the end of a directory makes no difference.

    ~/Downloads/ is the same as ~/Downloads (if you understand Linux, which your hosting almost certainly is, though it’d make no difference).

    You can use https://example.com/foo or you can use https://example.com/foo/ and the results will be the same. You can access the same directory (or URL) with the same address.

    In Linux terms, foo.php is the same as foo.php/ – and either address will work in your address bar. This will be the same with your hosting, even if you were hosting with Windows, as it is a standard.

    There is no real ‘best practice’, but you can save typing a character by just not including the trailing slash. So, use https://example.com/foo and skip the trailing slash.

    To see this in action, you can first test this.

    Open your site with https://example.com/index.php and then try opening it again with https://example.com/index.php/ – so long as there are no characters trailing the slash, it doesn’t matter.

    But, for simplicity sake, just drop the trailing slash and you’ll be just fine.

    (I’m just here for another conversation, but Linux is what I do.)

    • This reply was modified 1 year, 5 months ago by uninvolved.
    Thread Starter azkalex

    (@azkalex)

    @uninvolved thanks for the great explanation.

    Plugin Author gioni

    (@gioni)

    Like @uninvolved correctly said, the trailing slash does not matter here. Modern web servers and WordPress are configured to handle URLs with and without trailing slashes the same way. Personally, I prefer using the trailing slash, it clearly indicates the end of an URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom login URL’ is closed to new replies.