Title: Replace URLs automatically with function.php command?
Last modified: August 21, 2016

---

# Replace URLs automatically with function.php command?

 *  [SimonSov](https://wordpress.org/support/users/simonsov/)
 * (@simonsov)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/replace-urls-automatically-with-functionphp-command/)
 * How can i replace URLs automatically with a filter/actionhook in the functions.
   php?
 * Reason: I use the “HTTPS (SSL)” plugin to use shared ssl.
    It should look like:
   [https://any-shared-ssl.com/www.mydomain.com/somePicture.jpg](https://any-shared-ssl.com/www.mydomain.com/somePicture.jpg)
 * But it only works for the navigation links. When it comes to the entry content,
   the links look like this: [https://any-shared-ssl.com/somePicture.jpg](https://any-shared-ssl.com/somePicture.jpg)
   
   That’s right: “/www.mydomain.com/” always dissapears.
 * How would the entry in the functions.php look like to make this work?
    🙂

The topic ‘Replace URLs automatically with function.php command?’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [SimonSov](https://wordpress.org/support/users/simonsov/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/replace-urls-automatically-with-functionphp-command/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
