Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:40:56+00:00 2026-06-13T03:40:56+00:00

I have a CakePHP 2 install but have certain URLs exempt from the default

  • 0

I have a CakePHP 2 install but have certain URLs exempt from the default routing. I did this by adding the exception to the .htaccess file. So for example the call the http://www.mydomain.com/blog or http://www.mydomain.com/proofgallery both redirected to a folder outside of the cakephp.

The .htaccess code looks like this:

# Overrides to the cake routing    
<IfModule mod_rewrite.c>
  RewriteEngine On
RewriteCond %{REQUEST_URI} ^/?  (blog|proofgallery)/(.*)$
  RewriteRule ^.*$ - [L]
</IfModule>

However, I noticed in the error.log that something causes a missing controller error for those exemptions.

E.g.

2012-10-16 14:49:15 Error: [MissingControllerException] Controller class ProofgalleryController could not be found.
#0 /home/mydomain/public_html/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}

2012-10-16 11:13:24 Error: [MissingControllerException] Controller class BlogController could not be found.
#0 /home/mydomain/public_html/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))

#1 {main}

Why is that? And how to avoid it? As far as I can tell, all links from within the application use the full URL (http://www.mbvphotography.com/blog) and not the Cake HTML helper, which might explain the missing controller error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:40:57+00:00Added an answer on June 13, 2026 at 3:40 am

    I imagine that you want to add other code but you want to still use Cakephp.

    According this your examples, if you want to add http://www.mydomain.com/blog you must go to the following path “app/webroot” of CakePHP and add the folder “blog”. For example if you want to use a wordpress with your CakePHP aplication.

    Verify that you have the default .htacces on app/webroot/.htaccess

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php [QSA,L]
    </IfModule>
    

    And remove the changes you made on the .htaccess.

    I If you have more doubts let me know

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this function in CakePHP's AppModel (This is used to install initial data
I have the CakePHP stack in /var/www/site from one view under controller A I
I have a CakePHP app that is being moved to Sql Server from MySql.
I have to deploy my standard install of cakephp 1.3 on a shared host
I want to have cakephp paginate data and still use containable , but for
I have downloaded the CakePHP from it's site then I copied the files in
Ok, this is definitely weird. I have a cakephp app I'm using. I've removed
I have a CakePHP Application with many many screens using data from a specific
I have cakephp installed in the root directory. site.com/ i want to install wordpress
I have a fresh CakePHP 1.3 install and it currently has one layout. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.