If you’ve encountered the “The link you followed has expired” error in WordPress Hosting, you’re not alone. This common issue usually appears when trying to upload a theme, plugin, or media file via the WordPress dashboard. Fortunately, it’s not difficult to fix — and this guide will walk you through several proven methods to resolve it quickly.
This error typically occurs due to server-side limitations set in your hosting environment. Most commonly, it’s related to:
Low PHP upload file size limit
Short PHP maximum execution time
Low post max size limit
These settings control how large a file you can upload and how long a process can run before the server times out.
If your server uses Apache, you can modify the .htaccess file in the root directory of your WordPress site.
Connect via FTP or use File Manager in cPanel.
Locate and open the .htaccess file.
Add the following lines at the end:
Save and re-upload the file.
🔄 Then try uploading the theme or plugin again.
If your hosting provider gives access to the php.ini file:
Open or create a php.ini file in your site’s root.
Add or adjust the following values:
Save and apply changes. You may need to restart PHP via your hosting panel.
You can also insert PHP directives into your theme’s functions.php file as a quick workaround:
⚠️ Use this method only temporarily. A theme update or switch may override the changes.