https://github.com/timoa/wp-rename-media
PHP script that search for media files with special characters, rename them, update the DB and create a redirection 301
https://github.com/timoa/wp-rename-media
Last synced: 4 months ago
JSON representation
PHP script that search for media files with special characters, rename them, update the DB and create a redirection 301
- Host: GitHub
- URL: https://github.com/timoa/wp-rename-media
- Owner: timoa
- License: mit
- Created: 2019-09-03T14:00:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T05:41:31.000Z (almost 7 years ago)
- Last Synced: 2025-03-12T10:09:43.004Z (over 1 year ago)
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WIP - Wordpress Rename Media
PHP script that search for media files with special characters, rename them, update the DB and create an 301 redirection to avoid to lose your SEO.
I'm developing this PHP script for a client to automatically rename years of special characters in the filename
I will try to make it generic but let me know if it doesn't work for you.
Warning: This project is in progress!
## Test
To test this script, I started to use Docker with the following images:
* Wordpress (latest)
* MySQL (5.7)
* phpMyAdmin (latest)
The goal is to seed MySQL with a basic Wordpress install and dummy data (media with special characters and Posts linked to them).
To launch the current configuration, just run:
``` bash
cd test
docker-compose up
```
### URL
| Image | URL | Login | Password |
|---|---|---|---|
| Wordpress | | | |
| phpMyAdmin | | `wordpress` | `wordpress` |
[wordpress-url]: http://localhost:8000
[phpmyadmin-url]: http://localhost:8080