CodeIgniter Forums
facebook adding ? to my URL's - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: facebook adding ? to my URL's (/showthread.php?tid=27659)



facebook adding ? to my URL's - El Forum - 02-17-2010

[eluser]FumarMata[/eluser]
Hello

I'm having a problem with a site and facebook. When people shares it in their walls or using my app, Facebook adds "?ref=nf" at the end

http://www.example.com/?ref=nf

and that makes my site show a 404 error - not found, probably related to the disallowed characters in the URL.

As that's the only place where the ? is added, do you know some way to redirect that to my homepage without having to allow special characters? I am a bit scared of the warning message in config.php

Code:
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
| .....
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
|.....|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/

Thanks


facebook adding ? to my URL's - El Forum - 02-17-2010

[eluser]Sbioko[/eluser]
No, it is not about disallowed url characters. Search for "using Pretty URLs and GET in Codeigniter".


facebook adding ? to my URL's - El Forum - 02-17-2010

[eluser]laytone[/eluser]
Here you go:
http://ellislab.com/forums/viewthread/129318/