Relative to Absolute URLs

Examples:

  • Relative URL: /images/logo.png
  • Absolute URL: https://domain.com/images/logo.png

Changing relative URLs to absolute URLs in your WordPress website can help prevent the exposure of old paths and improve security. WP Ghost provides an easy way to make this change.

Why Use Absolute URLs?

  1. Improved Security – Easier to identify the old paths and change them to custom paths, making it harder for hackers to detect vulnerabilities.

Activate Change Relative URLs to Absolute URLs

The Change Relative URLs to Absolute URLs feature in Hide My WP Ghost automatically converts relative paths in your WordPress HTML output to absolute URLs, ensuring consistent and secure linking across your site.

  1. Go to WP Ghost > Tweaks > Change Options.
  2. Switch on the Change Relative URLs to Absolute URLs option to change the paths from relative to absolute.
  3. Click the Save button to apply the changes.
Activate Change Relative URLs to Absolute URLs

Troubleshooting

The Paths Are Not Changed in Frontend After Activating this Option

Clear all cache

If you have a cache plugin or use server caching, clear all the cache, as the change of paths has significantly changed the website’s structure.

If possible, try accessing the website from a different browser or device to see if the issue is specific to a particular setup.

Other Plugins Conflict

To identify and resolve this conflict, we recommend creating a staging website. Start by testing only the theme with the WP Ghost plugin active on this staging site. Then, activate your other plugins one by one.

This method will help you pinpoint which plugin is causing the conflict, allowing you to adjust settings or find an alternative solution.