# Rewrite external URLs

**URL:** <https://meta.discourse.org/t/rewrite-external-urls/277855>\
**Category:** Support\
**Created:** [September 5, 2023, 12:41pm UTC](https://meta.discourse.org/t/rewrite-external-urls/277855 "2023-09-05T12:41:53Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 7, 2023, 2:54pm UTC](https://meta.discourse.org/t/rewrite-external-urls/277855/12 "2023-09-07T14:54:57Z")

</div>

That’s likely overkill. If you just want to rewrite some urls, you don’t need much. I have a theme component that rewrites one boxes.

I have a [theme component](https://github.com/literatecomputing/runners-onebox-theme) that finds one-boxes from a certain domain and rewrites them as `<iframes>` appropriate to that site. It shouldn’t be too hard (for someone with skills as meager as mine) to change it to re-write your links.

You pretty much need to change only this:

> <https://github.com/literatecomputing/runners-onebox-theme/blob/main/javascripts/discourse/initializers/initialize-github-status.js#L15-L69>

---

_[View the full topic](https://meta.discourse.org/t/rewrite-external-urls/277855)._
