# Permalink Keeper

A WordPress plugin that automatically fixes broken permalinks by refreshing them at regular intervals. This prevents 404 errors and maintains SEO integrity by ensuring your permalinks remain functional.

## Features

* Automatically fixes broken permalinks
* Prevents 404 errors
* Configurable update interval
* Multilingual support (English, Norwegian, Dutch, German, French, Italian, Spanish)
* Minimal resource usage

## Installation

1. Upload the `permalink-keeper` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings -> Permalink Keeper to configure the update interval

## Requirements

* WordPress 5.0 or higher
* PHP 7.4 or higher

## Multilingual Support

The plugin currently supports the following languages:
* English (en_US)
* Norwegian Bokmål (nb_NO)
* Dutch (nl_NL)
* German (de_DE)
* French (fr_FR)
* Italian (it_IT)
* Spanish (es_ES)

## License

This plugin is licensed under the GPL v2 or later.

## Changelog

### 1.0.0
* Initial release
* Automatic permalink updates
* Configurable update interval
* Multilingual support

## Description

Permalink Keeper is a lightweight WordPress plugin designed to solve the common issue of permalinks becoming broken or inaccessible. Many WordPress sites experience problems where permalinks suddenly stop working, leading to 404 errors and lost traffic. This plugin automatically refreshes your permalinks at regular intervals, ensuring they remain functional and accessible.

The plugin is particularly useful for:
- Sites experiencing frequent permalink issues
- Large sites with many posts and pages
- Sites with complex permalink structures
- Sites that have migrated content or changed permalink settings
- Sites that need to maintain consistent URL structures for SEO

### Key Features

- Automatically fixes broken permalinks by refreshing them at configurable intervals
- Prevents 404 errors caused by permalink issues
- Configurable update frequency (1 minute to 1 hour)
- Lightweight and efficient
- Multilingual support
- Easy to use settings page
- Compatible with WordPress 5.0+
- Requires PHP 7.4+

## Usage

1. After activation, go to Settings > Permalinks
2. Scroll down to the "Permalink Update Settings" section
3. Select your desired update interval:
   - Every minute
   - Every 5 minutes
   - Every 15 minutes
   - Every 30 minutes
   - Every hour
4. Save your changes

The plugin will automatically update permalinks according to your selected interval.

## Supported Languages

- English (en_US)
- Norwegian Bokmål (nb_NO)
- Dutch (nl_NL)

## Troubleshooting

### Common Issues

1. **Permalinks not updating**
   - Check if WordPress cron is working properly
   - Verify that the plugin is activated
   - Check if your server's PHP memory limit is sufficient

2. **Settings not saving**
   - Clear your browser cache
   - Try deactivating and reactivating the plugin
   - Check for conflicts with other plugins

### Debug Mode

To enable debug mode, add the following to your wp-config.php:

```php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
```

## Contributing

We welcome contributions! Here's how you can help:

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request

### Development Requirements

- PHP 7.4+
- WordPress 5.0+
- Composer (for development dependencies)

### Coding Standards

- Follow WordPress Coding Standards
- Use PHP 7.4+ features when appropriate
- Document all functions and classes
- Include unit tests for new features

## Support

For support, please:
1. Check the [FAQ](https://nordic.hosting/permalink-keeper/faq)
2. Visit our [support forum](https://nordic.hosting/support)
3. Contact us at support@nordic.hosting

## Credits

Developed by [Nordic Hosting](https://nordic.hosting) 