Tweaks

Change Relative URLs 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.

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.

John Darrel

Change Database Prefix in WordPress

Because hackers often use bots to search for security flaws in your website, it is…

12 months

Customize WordPress Uploads Directory

The easiest way to change the default media uploads path is to use the WP…

12 months

WP Ghost and WP Rocket Cache

To hide all CSS and JS you need to follow the steps to Combine the…

12 months

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

12 months

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

12 months

Setting up Two-Factor Authentication (2FA) for WordPress Using Mobile Apps

When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…

12 months