Troubleshooting Pretty Links Redirecting to Your Homepage or Appending Your Domain
Content
If you're using the Pretty Links plugin and finding that your links are redirecting to your website's homepage or your domain name is being incorrectly appended to the target URL, you're not alone. This is a common issue with a few potential causes and solutions. Based on community reports, here are the most effective troubleshooting steps.
Why This Happens
This behavior often stems from a misconfiguration in how the plugin handles the redirect process. Common triggers include incorrect WordPress permalink settings, a target URL that isn't properly formatted, or a specific server configuration that requires an extra setting to be enabled.
Common Solutions
1. Check Your Target URL Format
The most frequent cause of the domain-appending issue is a target URL that is missing the http:// or https:// protocol. The plugin needs this to understand that the destination is an external, absolute URL.
- Incorrect:
www.example.com/affiliate-page - Correct:
https://www.example.com/affiliate-page
Always ensure your target URL begins with http:// or https://.
2. Enable the "Permalink Fix" Option
If your target URL is correctly formatted but you are still being sent to your homepage, a known fix within the plugin often resolves it.
- Navigate to Pretty Links -> Options in your WordPress admin dashboard.
- Locate the Enable Permalink Fix option.
- Check the box to enable it.
- Save your changes and test your pretty link again.
This setting is particularly helpful on sites that have recently moved to HTTPS or have certain server configurations.
3. Verify WordPress Permalink Structure
The Pretty Links plugin requires that your WordPress site is not using the "Plain" or "Default" permalink setting.
- Go to Settings -> Permalinks in your WordPress admin.
- Ensure any option other than "Plain" is selected (e.g., "Post name").
- Save the changes, even if you didn't make any. This refreshes your site's rewrite rules.
4. Check for Plugin Conflicts
Although less common, a conflict with another plugin can sometimes cause unexpected redirect behavior. To test for this:
- Temporarily deactivate all other plugins except Pretty Links.
- Test if your pretty link works correctly.
- If it does, reactivate your plugins one-by-one, testing after each, to identify the culprit.
Conclusion
In most cases, one of these four steps will resolve the issue of redirects going to your homepage or having your domain incorrectly prepended. Start by double-checking your target URL's format, as this is the simplest and most common fix. If the problem persists, working through the other solutions should get your affiliate links and branded redirects working smoothly again.
Related Support Threads Support
-
Pretty link diverts back to my home page???https://wordpress.org/support/topic/pretty-link-diverts-back-to-my-homr-page/
-
Bookmarklet works on one site, but not anotherhttps://wordpress.org/support/topic/bookmarklet-works-on-one-site-but-not-another/
-
Problem after moving to HTTPShttps://wordpress.org/support/topic/problem-after-moving-to-https-2/
-
Geographic Redirect not workinghttps://wordpress.org/support/topic/geographic-redirect-not-working/
-
Pretty Link Adding X to Domainhttps://wordpress.org/support/topic/pretty-link-adding-x-to-domain/
-
Target URL is not fully writtenhttps://wordpress.org/support/topic/target-url-is-not-fully-written/
-
Incorrect Target URL for Whatsapp URLhttps://wordpress.org/support/topic/incorrect-target-url-for-whatsapp-url/
-
Request Rejectedhttps://wordpress.org/support/topic/request-rejected/
-
Target=”_blank” not openinghttps://wordpress.org/support/topic/target_blank-not-opening/
-
Redirect Target is just being added to the end of my domain namehttps://wordpress.org/support/topic/redirect-target-is-just-being-added-to-the-end-of-my-domain-name/
-
SSL site showing up without referrerhttps://wordpress.org/support/topic/ssl-site-showing-up-without-referrer/
-
Pretty Link stripping UTM code?https://wordpress.org/support/topic/pretty-link-stripping-utm-code/
-
Problem with Complex URLShttps://wordpress.org/support/topic/problem-with-complex-urls/
-
This webpage is not available errorhttps://wordpress.org/support/topic/this-webpage-is-not-available-error/
-
Link with spaceshttps://wordpress.org/support/topic/link-with-spaces/
-
Link conflictshttps://wordpress.org/support/topic/link-conflicts/
-
redirect with an cat=4 in the urlhttps://wordpress.org/support/topic/redirect-with-an-cat4-in-the-url/
-
Double url redirect errorhttps://wordpress.org/support/topic/double-url-redirect-error/
-
Redirect Target is just being added to the end of my domain namehttps://wordpress.org/support/topic/redirect-target-is-just-being-added-to-the-end-of-my-domain-name-2/
-
Pretty Link appending domain namehttps://wordpress.org/support/topic/pretty-link-appending-domain-name/