• Hi there,

    When using clean permalinks references to, for instance, "src=12.shtml" break. They’re all fine on the homepage, but as soon as you click on a year or a tag, the link will change to src="2007/12.shtml" or src="tag/thistag/12.shtml which is of course not where I’m meaning to link. Is there anyway around this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Basic html… nothing WP-related.
    12.shtml will always get added to the URL you are on.
    /12.shtml – will be added to the root

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Generally speaking, I always suggest to use absolute URLs. Instead of src=12.shtml, use src=https://example.com/whatever/12.shtml. Why? Because this material may not be seen only on your webpage. Somebody might be looking at it with a feedreader. So a non-absolute link might be viewed somewhere else, and then not show up.

    You want all your users to see the material, so you want to tell them where the material is in a very absolute manner.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clean permalinks breaks code’ is closed to new replies.