Tuesday, September 18, 2012

1.3.15 index.php with wrong parameters does not show 404

Hi,

how to set up mod_rewrite or cakePHP routes to prevent such links form execution:
http://localhost/cakephp_1_3/app/webroot/index.php/js/flowplayer/js/jquery/css/js/jquery/js/jquery/css/css/css/css/js/jquery/css/js/jquery/js/jquery/css/js/css/js/jquery/js/js/flowplayer/js/c/js/js/jquery/css/js/flowplayer/

as I understand, fresh install of 1.3.15 with mode_rewrite on, rewrites to app/webroot/index.php and passes all the params there without any error of 404.

I have server in production where all urls are cached, meanwhile this url or other similar gives no 404 error. Thats why urls are saved to cache and are served for other requests to www.mysite.blah/ all corupted: all links are generated as if mentioned link = base url.

p.s. url was some how generated and executed, and google tries to index it.

--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: