Title: Clean permalinks breaks code
Last modified: August 18, 2016

---

# Clean permalinks breaks code

 *  [nexuszero](https://wordpress.org/support/users/nexuszero/)
 * (@nexuszero)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/clean-permalinks-breaks-code/)
 * 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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/clean-permalinks-breaks-code/#post-649427)
 * 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)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 6 months ago](https://wordpress.org/support/topic/clean-permalinks-breaks-code/#post-649444)
 * Generally speaking, I always suggest to use absolute URLs. Instead of `src=12.
   shtml`, use `src=http://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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/clean-permalinks-breaks-code/#post-649444)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
