Customer Portal

Get Involved. Join the Conversation.

Topic

    Vivian Tedford
    Is there a way to remove access to the CP pages for an...Answered
    Topic posted January 27, 2017 by Vivian TedfordBronze Trophy: 5,000+ Points 
    155 Views, 6 Comments
    Title:
    Is there a way to remove access to the CP pages for an entire interface?
    Content:

    We have several interfaces that had Customer Portal sites set up for them that are no longer being used.  I have turned off all scanning of them by search engines, but we are in contract negotiations and have not turned the interfaces completely off yet.  The templates for the pages are now set up to automatically redirect to a new site but that is apparently counting in our sessions.  So is there a way that I could change a config setting or anything that would maybe cause the user to just get a Page Not Found error?  Is the only way to rename all the pages and remove the current pages from production?  This seems like a bunch of work for something that is going away.  Just wondering if there's a simpler way to do this.

    Version:
    CP3

    Best Comment

    Anurag Mittal

    Disable MOD_CP_ENABLED config setting

    Comment

     

    • Anurag Mittal

      Disable MOD_CP_ENABLED config setting

    • Danette Beal

      Hi Vivted!

      Sounds like Anurag has given you a solid recommendation. Please keep us posted on whether this resolved your issue.

      Regards,

      Danette, Community Manager

    • Barrilito van Dijk

      Hi vivted,

      Anurag is spot on here, this would be the prior option to completely disable CP pages.

      If you would want to block it knowing it is just for a few days or so, the setting CP_MAINTENANCE_MODE_ENABLED is an option. With that setting you put up a maintenance scree for all pages (which in effect blocks your content as well, see some explanation here).

      But like I said, Anurag answer is I guess what you should do.

      Regards

    • Barrilito van Dijk

      Hi Vivted,

      Anurag responded right away on your question to help you out, could you please give us an update here to let us know if it helped out! If it did please set a best answer so that the rest of the community here can learn from it as well and see that a proper answer was given.

      Thanks.

      Regards.

    • Vivian Tedford

      Sorry -= I had responded to this through email but it apparently didn't update the incident.  Anurag's answer worked perfectly.

    • Danette Beal

      Thanks Vivted!!! This may seem like an easy solve but the value you give the Community in coming back and choosing a best answer is immense! Not only does it help the thousands of people who review our pages for answer but it also gets Barrilito and Anurag piece of mind that they are actually being helpful! 

      Thank you again!

      Danette, Community Manager