Simple Relative Content

Simple Relative Content Install Statistics

11
100%
Today: 11 Yesterday: 0 All-time: 1,661 downloads
Simple Relative Content Icon

Try plugin: Simple Relative Content

We'll create fresh WordPress site with Simple Relative Content installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Simple Relative Content

This plugin makes all attachments urls stored in database relative to the WP_SITEURL url.

1


0


0


0


0

updated: 10 years ago
since: 12 years ago
author: Semio Design

Description

When you use the WordPress editor to insert a media in the content field it stores a reference to the absolute path.
So if you change the location of your site (by switching from staging to production environment for example) all your paths will be incorrect.
This plugin stores relative pathes in the db instead of an absolute path.
Beware: this plugin must be activated BEFORE inserting a media into the content field. It has no effect on the medias stored before the activation.
It’s mostly based on the WP_SITEURL constant which should be defined in the wp_config.php file. If this constant isn’t defined it uses the “siteurl” option value instead.
If the plugin detects that you access the website from another location than the “siteurl” defined initially it can correct most of the wrong urls in the database.

Localisation of the plugin into french.