Sunday, June 28, 2009

Wrong folder being displayed via $html->link(), though it works, it's undesirable

Hello guys!
I've tried the search but whatsoever I'd search wouldn't be about the
problem I'm having.
So, my website address is
http://www.matchburn.com/

Following the blog tutorial we have this piece of code
<?php echo $html->link($post['Post']['title'], array('action' =>
'view', 'id' => $post['Post']['id']));?>
Which at my website translates to
http://www.matchburn.com/matchburn/posts/view/3
instead of
http://www.matchburn.com/posts/view/3

Though http://www.matchburn.com/matchburn/posts/view/3 works, so does
http://www.matchburn.com/posts/view/3 which is the one I'm looking for

matchburn/ is the root of my cake installation, so
matchburn/app/ is my app folder
matchburn/cake/ is my cake folder
I haven't modified webroot/index.php
Website root is matchburn/app/webroot/, set via .htaccess


RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?matchburn.com$ [NC]
RewriteCond %{REQUEST_URI} !^/matchburn/app/webroot/
RewriteRule ^(.*)$ /matchburn/app/webroot/$1
RewriteCond %{HTTP_HOST} ^(www.)?matchburn.com$ [NC]


Thanks in advance guys!
RewriteRule ^(/)?$ matchburn/app/webroot/ [L]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: