Skip to content Skip to sidebar Skip to footer

Html Base And Subdirectories

In my html I have But my links all go to mydomain.com/ (without the 'dev' subfolder). Why aren't my links

Solution 1:

You are using root relative URIs (<a href="/foo">) instead of document relative URIs (<a href="foo">).

Resolution will start from http://example.com/dev/ but the / will cause the local part (everything after the domain/port number) to be dropped.

Do not start your links with a / character.

Post a Comment for "Html Base And Subdirectories"