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.

Post title filter out/ignore period sign in url title

May 02, 2011 7:50pm

Subscribe [1]
  • #1 / May 02, 2011 7:50pm

    louisk

    40 posts

    When one types a period sign in the title of a post, the automatically created url-title also includes the period sign, which breaks the system on the front end.

    A period sign should just be ignored, I think (rather then a - or _).

  • #2 / May 02, 2011 8:42pm

    Lisa Wess

    20502 posts

    Hi, louisk -

    Are you removing index.php? We’ve seen this with users that are removing index.php; but out of the box EE does work with periods. This has usually been an issue with the mod_rewrite rule.

  • #3 / May 03, 2011 3:36pm

    louisk

    40 posts

    Hi Lisa,

    Yes, you are right, I have removed index.php and I’m using mod_rewrite.

    Is there a way around this? Could you point me in the right direction?

  • #4 / May 03, 2011 4:00pm

    Lisa Wess

    20502 posts

    There are some threads in Community Help; I’ll move this down there as well in case some of the community members have some ideas.

  • #5 / May 03, 2011 4:04pm

    louisk

    40 posts

    I found this thread but it didn’t work for me:

    Allowed URI Characters Config (Periods in URI’s Throwing 404)
    http://ellislab.com/forums/viewthread/182606/

    I’m using different rewrite rules however:

    # Remove index.php
    # Uses the "include method"
    # <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
    RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(site|search|global|sitemap|news|contact|about|en|fr|nl|members|P[0-9]{2,8}) [NC]
    RewriteRule (.*) /index.php/$1 [L]

    Has someone got any other suggestions?

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

ExpressionEngine News!

#eecms, #events, #releases