Re: Alias in CakePHP - ModRewrite Issue

2007-07-01 Thread Grant Cox

To use an Alias with CakePHP, you need to add
RewriteBase /your_alias_name
to the app/webroot/.htaccess file (right after the RewriteEngine On
line).  And you need to have
define ('WEBROOT_DIR', 'your_alias_name');
in your app/webroot/index.php


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Alias in CakePHP - ModRewrite Issue

2007-07-01 Thread [EMAIL PROTECTED]

Hi everyone,

 I've tried to make CakePHP working using Alias configuration, but
the only thing works its index.php ( /app/webroot/index.php).
The controller give me 404 error using /alias/posts/index, but
using /alias/?url=posts works.
I think its a mod_rewrite issue.
I have update the 3.htaccess with RewriteBase /alias, with no
success.
Anyone can help me ?


 Thanks!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---