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.

404 - special chars broken in some cases

June 20, 2011 9:42pm

Subscribe [3]
  • #1 / Jun 20, 2011 9:42pm

    lehrerfreund

    263 posts

    Hi,

    my reduced index.php was renamed to “in”.
    Now I have set up a 404-Page.
    When the 404-template is called with an url containing /in/ at the start, special chars (for me especially german “umlaute”) get broken. In any other case the page works correctly.
    The sourcecode of both pages looks identically.

    Perhaps this is an issue of my htaccess? this is:

    DirectoryIndex in index.php index.shtml index.html index.htm
    
    <Files in>
    ForceType application/x-httpd-php
    
    SetHandler application/x-httpd-php
    DirectoryIndex in in.php index.php index.shtml index.html index.htm
    </Files>
    
    #</IfModule>
    
    ErrorDocument 404 /110412_lehrerfreund-migration/in/neu/404

    Does anybody have an idea about the reason of this error?

    Thanks a lot in advance!

  • #2 / Jun 21, 2011 10:44am

    Kyle Cotter

    730 posts

    Hi lehrerfreund,

    We don’t currently recommend using “in” instead of “in.php”, as we prefer to have a more standard .htaccess file.

    The File Directory Check Method is the preferred way to remove, in your case, the “in.php” slug from the URL.

    Thanks.

  • #3 / Jun 21, 2011 1:42pm

    lehrerfreund

    263 posts

    Thanks Kyle,

    but I did this according to the official docs.

    About your suggestion I can read there:

    The unofficial EE Wiki has a page with instructions on ways you can completely remove the index.php file from your URLs. Note that this is only possible on some servers and EllisLab does not officially support this use.

    Anyhow: I can’t remove it completely, because I would have to adjust too many things (redirects via htaccess, preferences, testing) whicht I lack time right now.

    So still I have the problem that the 404 has problems with the special char. Is there another advice for me?

    Thanks in advance!

  • #4 / Jun 22, 2011 1:25pm

    Brandon Jones

    5500 posts

    Hi lehrerfreund,

    I’m not sure what would cause that, but I’d highly recommend testing with a simplified setup (that is, no .htaccess and a standard index.php) to make sure that isn’t contributing before you go further, as that can save a lot of time!

  • #5 / Jun 22, 2011 1:30pm

    Kevin Smith

    4784 posts

    Hi lehrerfreund,

    Sorry about the confusion. Along with our release of EE 2.2 today, we’re now supporting index.php removal from the URL using the File Directory Check method that Kyle linked to, and along with it, we’re no longer recommending changing then name of your index.php file. This new approach is what Kyle was referring to, though the official documentation won’t be updated to reflect that until later today.

    Could you post an example of a URL that breaks and displays a 404 and a URL that works?

  • #6 / Jun 22, 2011 1:43pm

    lehrerfreund

    263 posts

    Hi Kevin,

    works:
    http://localhost/lf/aisjfdijdfjiajfiji
    http://localhost/lf/some/templategroup/afsjdidfajij

    doesn’t work:
    http://localhost/lf/in/aisfjdiafjiji
    http://localhost/lf/in/some/templategroup/afisdjj

    In some weeks I am going to adapt this suggestion, but right now I don’t have time to implement it. I assume this is a very individual, specific problem. I can live with it, so we can focus on launching 2.2 😊

    Therefore: My case closed, I am going to post again if the problem is coming up again.

    Thanks Kyle, Brandon and Kevin for your support!

  • #7 / Jun 22, 2011 1:45pm

    Kevin Smith

    4784 posts

    Sounds good. Post again if you need to.

    Now go download EE 2.2 and enjoy. 😊

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

ExpressionEngine News!

#eecms, #events, #releases