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.

Advice needed on using .htaccess to limit invalid urls for specific template group

April 02, 2012 8:16am

Subscribe [1]
  • #1 / Apr 02, 2012 8:16am

    Linda A

    666 posts

    I am having issues on my site with large volumes of hits to invalid urls (see http://ellislab.com/forums/viewthread/210768/). In particular, this is happening to one of my template groups, which functions as a digest of several news blogs. Because of this, said template group only contains an index template and an rss template.

    I am not sure if this is somehow contributing to the number of invalid urls that come through that particular template, but what I am wondering is if it might be possible to use .htacess to make sure that anything except Digest/index or Digest/RSS returns a 404?

    I’ve tried the Strict URLS feature but a) it doesn’t seem to work (perhaps because of the .htaccess I already use) and b) I would prefer not as it would break some of my existing pages where the structure is http://www.domain.com/static-page without using template groups or templates. The issues mainly seem to be with this one template group anyway, so I would prefer to tackle it directly instead of affecting the whole site.

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

ExpressionEngine News!

#eecms, #events, #releases