ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Disallowed Key Characters question

March 26, 2011 9:27am

Subscribe [3]
  • #1 / Mar 26, 2011 9:27am

    outline4

    271 posts

    I have reprogrammed an old joomla site to expression engine…
    what a bliss 😊


    but google still holds the old url’s and instead of displaying the “404” error page it just sais:
    “Disallowed Key Characters”

    is this a server related thing, or an EE based thing?

    the url’s have “commas” in them like this:
    /content/view/346/lang,fr/
    /component/option,com_eventlist/Itemid,63/

    any help appreciated!
    stefan

  • #2 / Mar 27, 2011 5:49pm

    Greg Salt

    3988 posts

    Hi Stefan,

    This is an EE security feature. There are a couple of things you can do. The first is to open a Google Webmasters account so you can update Google with your new site links. Secondly, you can use .htaccess rewrite rules to check for any incoming URLs with a comma in them and redirect that request to your 404 page. Any of those rewrites you do should have an appropriate status code applied (301 meaning a permanent redirect). Though, unless your 404 page has information about how to find the content on the new site I would think about redirecting visitors to a page explaining what has happened rather than just a 404 page.

    Does that help?

    Cheers

    Greg

  • #3 / Mar 28, 2011 2:56pm

    outline4

    271 posts

    Hi Stefan,

    This is an EE security feature. There are a couple of things you can do. The first is to open a Google Webmasters account so you can update Google with your new site links. Secondly, you can use .htaccess rewrite rules to check for any incoming URLs with a comma in them and redirect that request to your 404 page. Any of those rewrites you do should have an appropriate status code applied (301 meaning a permanent redirect). Though, unless your 404 page has information about how to find the content on the new site I would think about redirecting visitors to a page explaining what has happened rather than just a 404 page.

    Does that help?

    Cheers

    Greg

    hi greg,
    thanks for clearing that…

    I am very bad in htaceess…
    might you have an example on hand?

    I tried:
    redirect 301 /content/ http://www.mysite.ch

    but that doesn’t work…
    cheers

    stefan

  • #4 / Mar 29, 2011 8:47am

    John Henry Donovan

    12339 posts

    stefan,

    I use a great site here for htaccess reference

  • #5 / Mar 29, 2011 12:40pm

    outline4

    271 posts

    stefan,

    I use a great site here for htaccess reference

    thanks for that valuable link!

    so there’s no way to turn this security behaviour off? in EE…

  • #6 / Mar 30, 2011 4:53am

    Greg Salt

    3988 posts

    Hi Stefan,

    It is possible to modify the allowed characters in a URI by altering the config file but I would strongly recommend that you do not do that. Do you want me to move this thread to the CodeShare Corner forum so that you can get some community assistance with your .htaccess rules?

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases