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 Characters in uri

March 29, 2011 1:34pm

Subscribe [6]
  • #16 / Apr 02, 2011 7:21pm

    jamestowers

    53 posts

    Well turns out I’m not…

    Any url with a ? query string doesn’t work now… for example: http://url.com/index.php?ACT=14 which is the page I go to when I try to log out, which means I can’t log out.

    Any ideas how to get round this one?

  • #17 / Apr 03, 2011 3:03pm

    Greg Salt

    3988 posts

    Hi jamestowers,

    Can you please go to Admin > System Administration > Output & Debugging and switch on “Force URL query strings” and then test this again.

    Cheers

    Greg

  • #18 / Apr 03, 2011 5:24pm

    jamestowers

    53 posts

    HI Greg,

    I still get the “The URI you submitted has disallowed characters.” page I’m afraid.

  • #19 / Apr 03, 2011 5:37pm

    Greg Salt

    3988 posts

    Hi jamestowers,

    Please check your mail.

    Cheers

    Greg

  • #20 / Apr 03, 2011 5:53pm

    jamestowers

    53 posts

    Thanks Greg,

    I’ve forwarded the details you requested. In addition to the above, I have since changed $config[‘uri_protocol’] back to AUTO and things seem to be working OK but I’d still rather it worked without the query string if possible.

  • #21 / Apr 04, 2011 2:44am

    John Henry Donovan

    12339 posts

    Hi James,

    just to confirm here. Your original thread issue is working correctly now?
    Which part are you wishing worked without a query string?

    Using REQUEST_URI is something that needs to be used because of your hosting itself. Most shared hosts are fine with AUTO. GoDaddy a lot of the time needs this specifically added for you uri_protocol

  • #22 / Apr 04, 2011 4:54am

    jamestowers

    53 posts

    Hi John,

    It’s nearly working, all the functionality of the site seems t be there, but every url is in a query string form with url.com/index.php?.... It would be great if I could get it working without the ‘?’.

    The hosting is with Dreamhost.

  • #23 / Apr 04, 2011 11:42am

    jamestowers

    53 posts

    Forcing query strings has also messed up all the links to my javascript files

  • #24 / Apr 04, 2011 4:43pm

    Sue Crocker

    26054 posts

    James, when it comes to GoDaddy, the reality is that in many cases you need to force URL query strings. If you don’t want to deal with that, then finding another host is an option. I typically recommend EngineHosting which will work better for you for only a few more dollars a month.

    When you say problems with your javascript files, are you referring to javascript stored in an EE template or in a stand alone file?

  • #25 / Apr 04, 2011 5:28pm

    jamestowers

    53 posts

    Hi Sue,

    I’m not actually using GoDaddy, I’m on Dreamhost and the Javascript files are in EE templates.

    Is there not a way to just allow inverted commas in urls whilst still having $config[‘uri_protocol’] set to AUTO? I tried adding them to $config[‘permitted_uri_chars’] like so a-z 0-9~%.:_\-”?+= but that didn’t work.

  • #26 / Apr 05, 2011 8:17am

    John Henry Donovan

    12339 posts

    jamestowers,

    I just switched on Force URL query strings as as you say everything works fine with it on.
    Dreamhost have always been a difficult one to get right and there are many issues regarding installs on them

    I think for now unless you intend using a different host you will have to use the query string in your URL for your Super Search Module to function correctly

  • #27 / Apr 05, 2011 8:50am

    jamestowers

    53 posts

    This morning I spent some time sorting out the rewrite rules to remove index.php, I did various things in the process of getting it working properly so I don’t know exactly what it was that did it but it’s all working fine now. I have $config[‘uri_protocol’] set to AUTO and Fore URL query strings set to false, so it’s working exactly as it should!
    Strange.
    Thanks for all your help everybody! I got there in the end…

  • #28 / Apr 05, 2011 9:32am

    Sue Crocker

    26054 posts

    That’s all that matters. Glad things are working again. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases