Rename Media Files: Improve Your WordPress SEO

Beschreibung

“One of the most important plugins on our site: Perfect plugin for our free stock photo website picjumbo. We’re using it for years to automatically rename our P001120.jpg photos to SEO-focused names like business-woman-using-a-computer-free-photo.jpg. This plugin really works! Thanks!” – ⭐⭐⭐⭐⭐ viktorhanacek

Main Page | Support Forum | Documentation & How to

The „Rename Media Files: Improve Your WordPress SEO“ plugin will simplify the process of managing media file names (images, PDFs, etc) and metadata, ensuring a tidy and search engine-friendly media repository.

If you’re an SEO guru and would like to make a better website for search engines by focusing on Image SEO, or someone who enjoys their files to be perfectly organized, this plugin will turn your dreams into reality.

The plugin comes with several features, like the ability to remove accents and special characters from filenames upon upload, rename files based on post titles, Site URL, or current date, and update file permalinks accordingly.

The Pro version goes much further, with features like manual filename and permalink editing, updating old media references in post content, and automatic alt tag generation, the possibilities for optimizing your media library are endless

🚀 Main Features: FREE Version

🚀 Remove Accents & Special Characters from Filenames on Upload

Ensure clean and SEO-friendly filenames by automatically removing accents and special characters upon upload, this is very useful when you share these files on social media, so you have standard URL without non-friendly characters.

Example 1:
A file named „café.jpg“ would be renamed to „cafe.jpg“.

Example 2:
A file named „résumé.pdf“ would be renamed to „resume.pdf“.

🚀 Rename Media on Upload Based on The Site URL

Automatically rename uploaded files based on your site URL (domain name) to maintain consistency and relevance between your domain name, content, and media.

Example 1:
If your site URL is „example.com,“ and you uploaded an image named camera.jpg, you can automatically rename it to „example-com-camera.jpg“.

Example 2:
You can append the site URL to other variables, like post name and/or file name, so for a site URL like „mywebsite.com“ uploaded to a post named „how to create a site“, a file might be renamed to „mywebsite-com-how-to-create-a-site.jpg“.

🚀 Rename Media on Upload Based on Post Title

Automatically rename uploaded files based on the post title it was uploaded to, this helps in keeping your media & content aligned & consistent.

Example 1:
If you upload an image for a post titled „Exploring the Great Outdoors,“ the file could be renamed to „exploring-the-great-outdoors.jpg“.

Example 2:
When images with identical names are uploaded to the same post, media name will be appended by a number, so in example 1 it will become „exploring-the-great-outdoors-1.jpg“, and this can be customized as well.

🚀 Rename Media on Upload Based on The Current Date

Instead of the default categorization of media by WordPress (year & month), you can fully control what part of the date you want to include in your media names.

Example 1:
An image named „laptop-at-night.webp“ uploaded on April 15, 2024, could be renamed to „laptop-at-night-2024-04-15.jpg“.

Example 2:
You can go further and utilize other rules as well, so you can include site name, post title, file name, and finish it with a date, so you can have a file named „dog.jpg“, uploaded to a post title „Nice Dogs“, on a website named „Dogs for Life“ and uploaded on May 28, 2024, the result file name could be „dogs-for-life-com-nice-dogs-dog-2024-05-28.jpg“.

🚀 Update Media Permalink Based on Media Rename

Media file names might change, but permalinks don’t (probably that’s why they called so?), with this plugin you can maintain consistency between filenames and permalinks by automatically updating file permalinks based on media renaming actions.

🚀 Convert Filename Characters to Lowercase

Standardize all media & files characters on your website to lowercase for consistency, to ensure uniformity across your media library & reduce the risk of errors (if redirects weren’t properly handled).

🚀 Advanced File Filtering Options

Customize file renaming behavior with advanced filtering options. Choose to ignore files with no extensions, specific file extensions, or filenames containing certain strings.

“Does the trick!: We needed a plugin to change the file name of images being uploaded to our site to a 100% predicable URL based on post slug and custom fields. This super simple plugin does the trick! The developer is super responsive and helpful too. We’re glad to have got the pro version.” – ⭐⭐⭐⭐⭐ russs95

“Very handy: Install the plugin, check some simple settings, forget about it because the job will now be done. Thank you very much! 🙂” – ⭐⭐⭐⭐⭐ wpguillaume

🏆 Do More: PRO Version

For those who would like to go further and beyond, we have a premium version of Rename Media Files: Improve Your WordPress SEO plugin.

🏆 Rename Media on Upload Based on ANYTHING

Other than the above options, the plugin allows you to include any of these values in media file renaming rules:

  • Datetime
  • Upload date
  • Custom string
  • Post Slug
  • User ID
  • User Role
  • Username
  • Product SKU
  • Post ID

🏆 Edit Media Filenames & Permalinks Manually

Take full control over your media library by manually editing filenames and permalinks to match your specific requirements.

🏆 Update Old/Previously Uploaded Media

You liked how the plugin works and want to apply it for all previous files? Easily update all your media library by updating outdated media files with new filenames and permalinks.

🏆 Update Media Reference in post content on file renaming

Ensure a seamless integration between media files and post content with this option, so when a media file is renamed, this feature automatically updates all references to that file within post content and prevents broken links or missing media elements in your website.

🏆 Rename (convert) Media Images Extension from JPEG to JPG

As „jpg“ is the standard file extension for JPEG images, this feature automates converting images with JPEG extension to the more widely recognized JPG format.

🏆 Update Filename on Post Update

Automatically synchronize media file names with post updates, so that you ensure media files remain aligned with their corresponding content.

🏆 Restrict Media File Renaming by User Role

Control access to media file renaming options & rules based on user roles of your website, so you guarantee that only authorized users have access to modification tools.

🏆 Restrict Media File Renaming by Custom Post Type

For those who want to have more control on media update based on the post type, the plugin allows media file renaming options to specific custom post types, such as: post, page, attachment, revision, nav_menu_item, product, product_variation, shop_order, shop_refund, and more!

🏆 Images SEO: ALT Texts & Media Titles Naming Automation

Take your Image SEO optimization to new levels by automatically generating ALT texts & images titles for images.

When uploading media files, the plugin offers options to auto-fill both ALT text and image title based on predefined settings or the original filename. For example, if you upload an image named „sunset.jpg,“ the ALT tag and media title can be auto-filled with „Sunset Image,“ ensuring that both are descriptive and optimized for accessibility and search engine visibility.

🏆 Compatibility with 3rd Party Plugins

  • Buddyboss: Disables profile upload renaming
  • Gravity forms: Handles issues with Gravity Forms entry exports
  • WPForms: Handles issues with WPForms file upload

❤️ User Testimonials: See What Others Are Saying!

“Perfect plugin for our free stock photo website picjumbo. We’re using it for years to automatically rename our P001120.jpg photos to SEO-focused names like business-woman-using-a-computer-free-photo.jpg. This plugin really works! Thanks!” – ⭐⭐⭐⭐⭐ viktorhanacek

“This is really well done. No more telling clients to sanitize file names upfront.
It also creates the correct two-letter form of the German umlauts äöüß -> ae oe ue ss.
Perfect!” – ⭐⭐⭐⭐⭐ DuchschererM

“superb plugin, fantastic support.” – ⭐⭐⭐⭐⭐ amanrajveer

“Must have plugin!: As WP-Expert i can tell you that this became one of my must have plugins! Wish i discovered this great plugin earlier! Perfect for converting customers weird filenames and improving search engine results.” – ⭐⭐⭐⭐��� nicmare

💯 Why WPFactory?

  • Experience You Can Trust: Over a decade in the business
  • Wide Plugin Selection: Offering 65+ unique and powerful plugins
  • Highly-Rated Support: Backed by hundreds of 5-star reviews
  • Expert Team: Dedicated developers and technical support at your service

What’s Next? Discover More Plugins by WPFactory

WPFactory has a diverse range of plugins tailored to enhance your experience:

Screenshots

  • Beispiel für einen bereinigten Dateinamen in der Mediathek
  • In den allgemeinen Einstellungen kannst du bestimmen, wie dein Dateiname lauten soll, indem du die Option Dateinamenstruktur nutzt.
  • Du kannst einstellen, nach welchen Regeln deine Dateinamen verändert werden

Installation

  1. Lade den kompletten Ordner „file-renaming-on-upload“ in das Verzeichnis „/wp-content/plugins/“
  2. Aktiviere das Plugin im Menu „Plugins“ von WordPress
  3. Beginne mit den Plugin-Einstellungen auf der Seite „Einstellungen > File Renaming“

FAQ

Welche Optionen stellt das Plugin zur Verfügung?

Zur Zeit kannst du unter diesen Optionen wählen:

  • Website-URL hinzufügen: Fügt „yoursite.com“ am Anfang des Dateinamens ein. Bsp: deine-seite.com_dateiname.jpg. Das ist gut für dein SEO

  • Beitragstitel: Wenn du dich auf einer Beitragsbearbeitungsseite mit dem Namen „Spiderman wird Marvel verlassen“ befindest und du ein jpg hochlädst, wird es spiderman-will-leave-marvel-my-file.jpg heißen. Diese Option ermöglicht es dir, den Dateinamen durch den Beitragstitel zu ersetzen oder den Beitragstitel hinzuzufügen.

  • Zeichen entfernen: du kannst beliebige Zeichen aus dem Dateinamen entfernen

  • Datum/Zeit: Du kannst Datums-/Zeitangaben in einem beliebigen Format zum Dateinamen hinzufügen oder ihn dadurch ersetzen

  • Lowercase: Konvertiert alle Buchstaben in Kleinbuchstaben

  • Akzente entfernen

  • Permalink aktualisieren: Wenn ein Dateiname sich ändert, kannst du auch den Permalink ändern, wenn du möchtest.

Wie funktioniert dieses Plugin?

Es benennt Dateien beim Upload anhand festgelegter Regeln um. Genauer gesagt wendet es bestimmte WordPress-Filter an, um den Dateinamen zu bereinigen, zum Beispiel sanitize_file_name, sanitize_file_name_chars oder auch Actions wie add_attachment

Was sind Regeln?

Regeln sind Optionen, mit denen du festlegen kannst, wie der Dateiname aussehen soll. Regeln werden im „Regeln“-Tab aktiviert und müssen in der Option „Dateinamen-Struktur“ eingefügt werden

Für was ist die Option mit der Dateinamens-Struktur?

Das ist die Option, in die du deine Regeln oder andere Zeichen einfügen kannst, um festzulegen, wie dein Dateiname sein soll

Gibt es irgendwelche Hooks?

  • frou_sanitize_file_name erstellt eigene Regeln. Schau in den Abschnitt „Kann ich eigene Regeln erstellen?“.
  • frou_ignored_extensions für das Ignorieren von Dateiendungen. Schau in den Abschnitt „Kann ich das Ignorieren von Dateiendungen irgendwie über Programmierung regeln?“.

Kann ich das Ignorieren von Dateiendungen irgendwie über Programmierung regeln?

Ja, du kannst den Filter „frou_ignored_extensions“ benutzen, um dies über die Datei functions.php zu erledigen.
Hier ein Beispiel, um die Dateiendungen „txt“, „js“ und „zip“ zu ignorieren:

add_filter( 'frou_ignored_extensions', function ( $extensions ) {
    $extensions = array_merge( $extensions, array(
        'txt',
        'js',
        'zip',
    ) );
    return $extensions;
} );

Kann ich eigene Regeln erstellen?

Ja, das geht ganz einfach.

Zunächst musst du unter Dateinamen-Struktur eine eigene Regel mit geschweiften Klammern anlegen, etwa {meine_eigene_regel}. Du musst die Platzhalter einfach an die Stelle schreiben, wo du sie haben möchtest.

Du kannst jetzt den Filter frou_sanitize_file_name benutzen, um eigene Funktionen zu erstellen. Wenn du beispielsweise die Benutzer-ID ergänzen möchtest, wäre die Regel etwas wie:

add_filter( 'frou_sanitize_file_name', function($filename_infs){
    $filename_infs['structure']['translation']['my_custom_rule'] = get_current_user_id();
    return $filename_infs;
}, 20 );

Wie kann ich bei der Code-Entwicklung mitwirken?

Schau im GitHub-Repository von File Renaming on Upload vorbei und schau, wie du mit anpacken kannst.

Rezensionen

24. Februar 2023
This is a nice plugin, but I encountered issues on my theme as it broke parts of my site after it renamed some of my theme and plugin files automatically. Took me time to realize it was the culprit 🙂 .
20. Juli 2022
I just wish there was an option to put all words with the first letter in uppercase.
18. März 2021 1 Antwort
Esse plugin é sensacional. Ajuda bastante no envio das imagens. Antes, eu tinha muitos problemas na hora de migrar de servidor, pois alguns fotos, acentuadas, ficavam totalmente inacessíveis na nova hospedagem. Com esse plugin, não tenho mais esse problema. Utilizo o plugin em todos os meus sites. Meus parabéns ao desenvolvedor por ter criado um plugin realmente útil.
Alle 39 Rezensionen lesen

Mitwirkende & Entwickler

„Rename Media Files: Improve Your WordPress SEO“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Rename Media Files: Improve Your WordPress SEO“ wurde in 2 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Rename Media Files: Improve Your WordPress SEO“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

2.5.8 – 2024/05/16

  • readme.txt content update.

2.5.7 – 2024/04/25

  • Tested up to: 6.5.

2.5.6 – 2023/09/26

  • Tested up to: 6.3.
  • Update plugin icon, banner.

2.5.5 – 2023/06/30

  • Fix – Sanitize multiselect fields properly.

2.5.4 – 2023/06/20

  • Dev – New filter: frou_get_parent_post_title.

2.5.3 – 2023/05/18

  • Fix – PHP warning: Trying to access array offset on value of type int.

2.5.2 – 2023/05/18

  • Fix – Fields are not getting sanitized properly.
  • Dev – Improve separator logic.
  • Tested up to: 6.2.

2.5.1 – 2023/02/01

  • Tested up to: 6.1.
  • Move to WPFactory.

2.5.0 – 2022/08/12

  • Tested up to: 6.0.

2.4.9 – 2022/02/21

  • Improve „Convert characters to dash“ option.
  • Tested up to: 5.9.

2.4.8 – 2021/10/14

  • Add „Max length“ option for „Filename structure“.

2.4.7 – 2021/09/20

  • Fix – Both plugins can’t be active at the same time.
  • Improve composer setup.
  • Improve readme.
  • Tested up to: 5.8.

2.4.6 – 2021/07/02

  • Fix timezone warning from datetime rule.
  • Add frou_current_media_id filter.
  • Add get_current_media_id() function.

2.4.5 – 2021/06/07

  • Speichere den ursprünglichen Dateinamen im neuen Anhang.
  • Update des Förderhinweises.
  • Verbessere die Coding-Standards.

2.4.4 – 2021/05/24

  • Korrigiere die Option truncate, wenn sie zusammen mit der Konvertierung des Beitragstitels verwendet wird.
  • Ändere das Deployment-Skript.

2.4.3 – 2021/03/15

  • Korrigiere die Option truncate, indem du das Max-Limit entfernst.
  • Bis zu WordPress-Version 5.7 getestet.

2.4.2 – 2021/02/25

  • Option „Akzente Konvertierungsmethode“ hinzufügen.
  • Füge die transliterator_transliterate-Funktion als Option hinzu, um Zeichen zu konvertieren.

2.4.1 – 2021/02/21

  • Bis zu WordPress-Version 5.6 getestet.
  • Gutenberg-Titel Fix-Option hinzufügen.
  • Fix Composer-Autoload-Aufruf.
  • Readme aktualisiert.

2.4.0 – 2020/12/07

  • Verhindere, dass Punkte aus der Erweiterung in „Regeln > Dateiname > Konvertieren“ in einen Bindestrich umgewandelt werden.
  • Füge den Parameter new_extension zum frou_sanitize_file_name-Hook hinzu.
  • Multiselect-Feld im Adminbereich hinzufügen.
  • Getestet bis WordPress 5.5.
  • Füge Log zu den ignorierten Dateierweiterungen hinzu.

2.3.9 – 2020/06/18

  • Deaktiviere die Umbenennung bei der Verwendung von WooCommerce Export Products.
  • Erstelle den Filter „frou_renaming_validation“.
  • Blockierung durch Erweiterung beheben.
  • Falsche Zeichenfolge korrigieren
  • Option datetime verbessern
  • Bis zu WordPress-Version 5.4 getestet

2.3.8 – 2019/11/26

  • Fix Beitragstitel-Regel entfernt Leerzeichen aus Titeln

2.3.7 – 2019/11/17

  • Fix „Beitragstitel-Regel“, wenn der Titel mit nicht lateinischen Zeichen gebildet wird.

2.3.6 – 2019/11/15

  • Fix „Beitragstitel-Regel“ nach WordPress 5.3

2.3.5 – 2019/11/13

  • Fix „Parameter muss ein Array oder ein Objekt sein, das Countable implementiert“
  • Bis zu WordPress-Version 5.3 getestet

2.3.4 – 2019/04/12

  • Fix Warnung beim „upgrader_process_complete“-Hook, wenn $options[‚plugins‘] nicht immer vorhanden ist

2.3.3 – 2019/04/11

  • Bis zu WordPress-Version 5.1 getestet

2.3.2 – 2019/02/10

  • Ignorierte-Nachrichten-Feld verbessern
  • Abschnitt Sounds in den Einstellungen hinzufügen
  • Verbessere die Premium-Benachrichtigungen in der Administration
  • Standardmäßig ignorierte Nachrichten hinzufügen, die leere Pop-ups verhindern
  • Readme verbessert

2.3.1 – 2019/01/23

  • Filter ‚frou_filename_allowed‘ hinzufügen
  • Bis zu WordPress-Version 5.0 getestet

2.3.0 – 2018/11/02

  • Füge mehr Namen zur Option „ignore filenames“ bezüglich Visual Composer hinzu
  • Filter ‚frou_after_sanitize_file_name‘ hinzufügen
  • Option hinzufügen, um Dateien ohne Erweiterung nicht umzubenennen, um Kompatibilität mit Drittanbietern zu verhindern

2.2.9 – 2018/07/27

  • Prüfe ob Regeln existieren bevor du den Dateinamen konvertierst
  • Füge mehr Namen zur Option „ignore filenames“ bezüglich Visual Composer hinzu

2.2.8 – 2018/04/20

  • Prüfe, ob die Permalink-Option bei der add_attachment-Funktion aktiviert ist

2.2.7 – 2018/03/30

  • Mit Nextgen Galerie Plugin kompatibel machen

2.2.6 – 2018/03/26

  • Übersetzungsdatei aktualisieren
  • Persisch Übersetzung hinzufügen
  • Config Auto Deploy mit Travis
  • Wp.org Assets auf github hinzufügen

2.2.5 – 2018/01/30

  • Leere Funktion reparieren

2.2.4 – 2018/01/26

  • Übersetzung für einige fehlende Zeichenfolgen hinzufügen
  • Option zum Abschneiden des Dateinamens hinzufügen

2.2.3 – 2017/11/27

  • Fix Hinweisprüfung
  • Ersetze die „install_plugins“-Berechtigung durch „edit_users“
  • Getestet bis WordPress 4.9

2.2.2

  • POT-Datei aktualisiert
  • übersetzbare Texte hinzugefügt

2.2.1

  • Bei Update transient setzen

2.2.0

  • Tab öffnen wenn Hash vorhanden ist
  • Einstellungs-API verbessert
  • Mitteilung erstellen um Rezension zu bitten
  • Hinweis erstellen, der über die Pro Version spricht
  • Plugin-Beschreibung verbessert

2.1.9

  • Filter für die ID des übergeordneten Beitrags eingeführt (frou_parent_post_id)

2.1.8

  • Filter für das Ignorieren von Dateiendungen eingeführt („frou_ignored_extensions“)

2.1.7

  • Funktion für das Auslesen des Beitragtitels verbessert, auch für ungespeicherte Beiträge

2.1.6

  • Neuen Filter „frou_admin_sections“ hinzugefügt
  • Einstellungs-API verbessert
  • Update getestet bis
  • Einstellungen auf Administratoren beschränkt

2.1.5

  • Neue Option hinzugefügt, die beliebige Zeichen in Bindestriche konvertiert

2.1.4

  • Konflikt bei WeDevs Einstellungen API Bibliotheken beheben

2.1.3

  • Update Einstellungen API Klasse

2.1.2

  • Plugin startet nach den Hook „plugins_loaded hook“
  • Link zu Github korrigiert
  • Readme verbessert

2.1.1

  • Hinzugefügt: neue Option für das Ignorieren von Dateinamen
  • Behoben: Konflikt mit der Datei sitemap.xml, die durch „All in one SEO pack“ generiert wird

2.1.0

  • Neue Option zum Entfernen von Nicht-ASCII-Zeichen hinzugefügt

2.0.8

  • Weitere Konflikte mit dem Github Update-Plugin gelöst

2.0.7

  • Fix datetime option fatal error on update() boolean

2.0.6

  • Weitere Konflikte mit dem Github Update-Plugin gelöst

2.0.5

  • Ignoriert weitere Basisnamen (‚option_page‘, ‚action‘, ‚wpnonce‘, ‚wp_http_referer‘, ‚github_updater_repo‘, ‚github_updater_branch‘, ‚github_updater_api‘, ‚github_access_token‘, ‚bitbucket_username‘, ‚bitbucket_password‘, ‚gitlab_access_token‘, ’submit‘, ‚db_version‘, ‚github_updater_install_repo‘), wenn es keine Erweiterung gibt, um weitere Konflikte mit dem github-updater Plugin zu lösen

2.0.4

  • Ignoriert einige Basisnamen (‚path‘, ’scheme‘, ‚host‘, ‚owner‘, ‚repo‘, ‚owner_repo‘, ‚base_uri‘, ‚uri‘), wenn keine Erweiterung angegeben ist. Es löst Konflikte mit dem github-updater Plugin

2.0.3

  • Beschreibung verbessert
  • Option ergänzt, um einige Dateiendungen vom Umbenennen auszunehmen
  • Neuen Screenshot hinzugefügt
  • Sprachdateien für Portugiesisch und Deutsch aus dem Ordner languages entfernt

2.0.2

  • Portugiesische Übersetzung verbessert
  • Deutsche Übersetzung hinzugefügt

2.0.1

  • Behoben: Fehler des Autoloaders in Linux-Umgebungen

2.0.0

  • Plugin mit einigen neuen Optionen überarbeitet

1.3

  • Fehler behoben, bei dem die Website-URL stattdessen die Home-URL sein sollte

1.2

  • Option zum Umbenennen von Dateien basierend auf dem Beitragstitel hinzugefügt
  • Fehler behoben, bei dem einige Zeichenfolgen nicht richtig aus der URL der Website entfernt wurden

1.1

  • Option hinzugefügt, um Zeichenfolgen-Teile aus der Url zu entfernen

1.0.1

  • Klasse der Admin-Seite umbenannt

1.0

  • Erstveröffentlichung