Re: robots.txt
I believe it depends on your .htaccess file as well.
I have this:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) app/webroot/$1 [L]
To check for a file or directory.
My DocumentRoot is the directory which contains APP:
ls -1d app/ flash/
app/
flash/
I have documents in the flash directory that are served if you visit
domain.com/flash/filename.swf
On May 18, 5:05 am, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On May 17, 2011, at 23:01, なお 鈴木 wrote:
>
> > How do I create a robots.txt for cakephp version 1.3.8?
>
> > I placed robots.txt in "app/webroot".
>
> That's the correct place to put it.
>
> > But when I access 'http://myhomepage.com/robots.txt'
> > I get
> > "Not Found
> > The requested URL /robots.txt was not found on this server."
>
> That suggests your web server's DocumentRoot is not /path/to/app/webroot, so you should fix your DocumentRoot.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home