> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/use-cases/proxify-url.md).

# Proxify Url

Since version 4.2, a filter lets you route ("proxify") a resource URL through Weglot. A proxified URL is rewritten to this form:

`proxy.weglot.com/API_KEY/LANGUAGE_FROM/LANGUAGE_TO/my.ressource.io`

To proxify one or more URLs, use the `weglot_proxify_urls` filter:

```php
// Add this using the "Code Snippets" plugin or directly in functions.php
add_filter( 'weglot_proxify_urls', 'proxify_callback' );
function proxify_callback( $urls_to_proxify ) {
    $urls_to_proxify[] = 'https://my.ressource.io/';
    return $urls_to_proxify;
}
```

You can add several URLs to the array.
