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

Updating template fails and redirects to front side homepage?

Development and Programming

FuturShoc's avatar
FuturShoc
71 posts
about 9 years ago
FuturShoc's avatar FuturShoc

I’ve got a legacy EE site that I just moved to a new server. Everything seems find except for this issue. When I try to edit a template from within EE and click “Update and Finished” or “Update”, the save doesn’t happen and I’m redirected to the homepage on the front of the site. And the URL becomes:

http://domain.com/system/index.php?S=0&D=cp&C=design&M=update_template&tgpref=3

EE 2.5.5

       
Derek Jones's avatar
Derek Jones
7,561 posts
about 9 years ago
Derek Jones's avatar Derek Jones

That’s a very old version of ExpressionEngine, so I definitely encourage you to update. However, the behavior you describe sounds more like a server environment issues, specifically with mod_security. Some hosts have this Apache module installed with very aggressive filters. A common filter is to reject requests which contain POST data that has markup or code—which is obviously going to be common in the admin area of a CMS.

Whatever the case, you should be able to find something in the server access and error logs pertaining to that request, and assuming it’s mod_security, I would ask your host to whitelist your admin.php entirely, as it’s only going to frustrate common administrative tasks.

       
FuturShoc's avatar
FuturShoc
71 posts
about 9 years ago
FuturShoc's avatar FuturShoc

That was it!!! Thank you so much.

       
Derek Jones's avatar
Derek Jones
7,561 posts
about 9 years ago
Derek Jones's avatar Derek Jones

Glad to help FuturShoc!

       

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.