We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problem wth LG .htaccess Generator and Pages Module

Development and Programming

brianfidler's avatar
brianfidler
75 posts
16 years ago
brianfidler's avatar brianfidler

I just encountered a problem which is really a user/process problem with LG .htaccess Generator. The consequences of the problem are severe enough though that I think a solution needs to be created to resolve it.

I have a number of users who manage content on our local Girl Scout council site. I have the Pages module turned on so that if a specific group needs a landing page with a nice simple seo friendly URL they can create it themselves. Just a little while ago one of them created a page and in the Pages URI field they used two words without a hyphen (/Horse Program/ instead of /horse-program/).

This created a much larger issue and essentially brought our entire site down. I also have LG .htaccess Generator turned on and it added “Horse Program” to the following .htaccess rule:

RewriteCond %{REQUEST_URI} ^/(search|site|extranet|products|includes|programs-and-events|member-area|about|membership|public-events|login|espanol|summer-camp|news|volunteers-and-parents|council-information|administration|wiki|sitemap|encampments|gallery|support-the-sash|includes2|public|about||membership|public-events|member-surveys|login|espanol|council-information|volunteers-and-parents|administrative|surveys|news|programs-and-events|annual-meeting|cms-training|administration|Horse Program|members|P[0-9]{2,8}) [NC]

That additional space crashed the .htaccess file which effectively brought down our entire site with a 500 Internal Server Error.

I think that it would probably be relatively simple for LG .htaccess Generator (and maybe the Pages module as well) to replace spaces with hyphens, and/or disallow anything submitted in the Pages URI field that includes a space.

       
John Fuller's avatar
John Fuller
779 posts
16 years ago
John Fuller's avatar John Fuller

I just ran into the same issue. We probably need to bring this to the attention of Leevi rather than posting it here. I appreciate you bringing this up for other people who run into the same problems though.

ETA: It would also be nice if the pages module would either show an error or modify the URI so a bad URI couldn’t be saved.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.