Cameron
Cameron

Reputation: 28853

Accessible directories when using CakePHP

I'm using CakePHP to power my website here: http://driz.co.uk/ and have the standard setup of having an App folder and a Cake folder in the server root. I also have some other directories for other projects which SHOULD be accessible also but because of my Cake website it is preventing me from accessing them in the browser. e.g. http://driz.co.uk/taschen/ is a folder with an index.html file inside which would work but Cake instead causes a 404 error.

How do I get around this issue? Thanks.

Upvotes: 0

Views: 166

Answers (4)

Dan Blows
Dan Blows

Reputation: 21194

Depending on your exact server, the questions might need to be rephrased, but do you have root access to your server? Can you add a new site to sites-enabled, edit a current site, or edit httpd.conf?

If so, then you could point the document root to the web folder, and then use site aliases for the other folders.

Upvotes: 0

contrebis
contrebis

Reputation: 1318

Are your project directories within cake's webroot dir? Normally there is no issue accessing files that exist.

Upvotes: 0

zergussino
zergussino

Reputation: 821

You can try to place files into app/webroot/ directory That way I managed to install Wordpress blog. Not CakePHP-Dao way probably but it works.

Upvotes: 1

Oswald
Oswald

Reputation: 31685

mod_rewrite maps the taschen folder to some other URL. The configuration for mod_rewrite can usually be found in the file .htaccess.

Upvotes: 0

Related Questions