um, yeah, you could do it that way too! ;-)
sometimes you can get so wrapped up in cake's snuggly wool that you forget
about the real world.
one observation about configuring the pages controller to serve this kind
of content is that by passing through the cake stack the response can take
adv
None of that is necessary. Static, non-Cake files can be placed in
app/webroot. This is what the mod_rewrite lines in .htaccess are for:
if the file doesn't exist, pass the args to app/webroot/index.
Otherwise, just serve the file as normal.
On Fri, Nov 9, 2012 at 10:20 AM, sophistry wrote:
> Yo
You need to teach CakePHP how.
add this to your routes.php file:
Router::connect('/pinterest_verify.html', array('controller' => 'pages',
'action' => 'display', 'pinterest_verify'));
then go to your site:
http://yoursite.com/pinterest_verify.html
you'll see an error that says "The view for Pages
To verify my website on pinterest, I need to place an html file in my root.
This is the message I keep getting:
*Your server responded with a status code of 404 (file not found). We tried
to visit the file at http://wallshops.com/pinterest-.html.*
Where should I place the file, and what do