If a facebook page is set to link to to a Joomla 4 website, the the return url is something like this.
https://www.website.co.uk/?fbclid=IwAR2Swzbda3oEmj5dkJAkwNvlrjrrhzr88D3a0sTgUjAm_BqURsUc4Uy-mTc
We would expect the website to load and ignore the facebook tracking code.
Yhe website does not load and we get 500 Internal Server Error
An internal server error has occured.
This can be fixed with 2 lines added tot he .htaccess file.
RewriteCond %{QUERY_STRING} "fbclid=" [NC]
RewriteRule (.*) /$1? [R=301,L]
The problem with this fix is that Google Analytics cannot then see that the traffic came from facebook and records it as direct traffic.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Hello
I am not using litespeed as a web server.
I have also tested this on multiple web sites and can not confirm a 500 error message.
Please enable debug in global config and trigger the error on your site.
This should now display a Stack trace - please copy and paste that here
I have the .htaccess fixed disabled on the site in question and debug enabled. Not sure what else to do.
The URL : https://www.heronfield.co.uk/?fbclid=IwAR2Swzbda3oEmj5dkJAkwNvlrjrrhzr88D3a0sTgUjAm_BqURsUc4Uy-mTc
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-05 18:12:20 |
Closed_By | ⇒ | Quy |
Closing as not a core issue.
After testing some Joomla sites I can not confirm that query strings like
?fbclid=IwAR2Swzbda3oEmj5dkJAkwNvlrjrrhzr88D3a0sTgUjAm_BqURsUc4Uy-mTc
lead to an 500 error in Joomla 3, 4, 5 per se. Pages load normally with the unchanged query string.
Did you read already this thread in Joomla forum? https://forum.joomla.org/viewtopic.php?t=998394
especially comment: