Welcome Guest, Not a member yet? Register   Sign In
Routing with "&key=value parameters
#1

I have a question what might be very basic but I can't find the solution for it..

I have a route set to 
$route['action-name/(.*)'] = 'main/procedure/$1';

it works great, but I've noticed when evaluated my SEO stats that I'm getting 404 errors when google indexes the pages.. The reason seems to be that Google adds certain parameters ad the end of the url, which causes the routing to fail...

404. That’s an error.
The requested URL was not found on this server. That’s all we know.
Code:
/search?q=cache:zDt-ObjwbuEJ:https://website.com/action-name/object-permalink+&cd=22&hl=en&ct=clnk&gl=us


when typed directly into the browser's address bar, I get this:
Fatal error: Class 'CI_Controller' not found in /home/jml/public_html/website.com/system/core/CodeIgniter.php on line 366

How do I get around it? When I remove the part added by Google, it works as supposed to.. Can I somehow just ignore the added parameters? Would I set it in route.php or htaccess?

Please advice, 
Many thanks in advance
Miro
Reply


Messages In This Thread
Routing with "&key=value parameters - by mirrek74 - 10-23-2016, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB