php $_GET routing

2008-02-21 Thread [EMAIL PROTECTED]

Before I used CakePHP, I had a page written in simple PHP. It had urls
like this - mypage.com/?article=3. But now my page kas urls like this
- mypage.com/article/view/3. A lot of refferring sites has the old
url, but I don't want to loose my clients. How do I handle it? I tried
to set the routing like this:

Router::connect('/?articleid=*', array('controller' = 'articles',
'action' = 'view'));

But it didn't work, cakephp says, that no controller was found.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: php $_GET routing

2008-02-21 Thread [EMAIL PROTECTED]

It doesn't work. I even tried to place this line in all .htaccess
files, but the result is the same.

On Feb 21, 3:17 pm, Walker Hamilton [EMAIL PROTECTED] wrote:
 Use rewrite rules in htaccess instead.

 RewriteRule ^index.php?articleid=([0-9]+)$  /articles/view/$1 
 [R=301]
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---