mihdan / mihdan-no-external-links

Convert external links into internal links, site wide or post/page specific. Add NoFollow, Click logging, and more
https://wordpress.org/plugins/mihdan-no-external-links/
GNU General Public License v2.0
14 stars 5 forks source link

remove query string #31

Open Ganyu69 opened 1 year ago

Ganyu69 commented 1 year ago

example

https://domain.com/goto/aHR0cHM6Ly93d3cuZmFjZWJvb2suY29tL2ZhY2Vib29r?swcfpc=1

end up to 404 https://www.facebook.com/facebook%B3%07%1F%A5%CD

Ganyu69 commented 1 year ago

error if not using cloudflare image

mihdan commented 1 year ago

Hi

Check the error logs of your webserver

Ganyu69 commented 1 year ago

@mihdan

Screenshot 2023-05-16 000925

nginx: `2023/05/15 17:44:16 [error] 920934#920934: *507345 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class "Mihdan\No_External_Links\Mihdan_NoExternalLinks_Database" not found in /home/test/web/domain.com/public_html/wp-content/plugins/mihdan-no-external-links/public/Frontend.php:988 Stack trace:

0 /home/test/web/domain.com/public_html/wp-content/plugins/mihdan-no-external-links/public/Frontend.php(474): Mihdan\No_External_Links\Frontend->add_log()

1 /home/test/web/domain.com/public_html/wp-content/plugins/mihdan-no-external-links/public/Frontend.php(428): Mihdan\No_External_Links\Frontend->redirect()

2 /home/test/web/domain.com/public_html/wp-includes/class-wp-hook.php(308): Mihdan\No_External_Links\Frontend->check_redirect()

3 /home/test/web/domain.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

4 /home/test/web/domain.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

5 /home/test/web/domain.com/public_html/wp-includes/template-loader.php(13): do_action()

6 /home/test/web/domain.com/public" while reading response header from upstream, client: xx.xx.xx.xx, server: domain.com, request: "GET /url/aHR0cHM6Ly93d3cuZmFjZWJvb2suY29tL2ZhY2Vib29r?hello HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-domain.com.sock:", host: "domain.com"`

the error only appears if there is a query string

mihdan commented 1 year ago

Did you install the plugin from the WordPress repository or from GitHub?

Ganyu69 commented 1 year ago

WordPress repository

Version 5.0.7