elogic | 20 Jun 2012 07:19
Picon
Favicon

url=controller/function appears now in my url address bar

Hi All,

I moved a site from one server and upgraded it from 1.3.x to 2.x and now in the url I am getting something like this: /units/staffindex?url=units%2Fstaffindex

The url=units%2Fstaffindex part is new to me. Any idea why it is now there and how do I get rid of it?

Everything works as normal, it's just not neat so I want it removed.

Thanks

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
dogmatic69 | 20 Jun 2012 12:47
Picon
Gravatar

Re: url=controller/function appears now in my url address bar

The rewrite rules have changed in 2.x so make sure you update the .htaccess (and the other files in webroot / Config)

On Wednesday, 20 June 2012 06:19:26 UTC+1, elogic wrote:

Hi All,

I moved a site from one server and upgraded it from 1.3.x to 2.x and now in the url I am getting something like this: /units/staffindex?url=units%2Fstaffindex

The url=units%2Fstaffindex part is new to me. Any idea why it is now there and how do I get rid of it?

Everything works as normal, it's just not neat so I want it removed.

Thanks

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
elogic | 3 Jul 2012 06:46
Picon
Favicon

Re: url=controller/function appears now in my url address bar

I checked this all out but I couldn't see anything that was wrong. Anyone have an idea exactly what might be going on here? Everything still works, it's just the URL is different.

Thanks


On Wednesday, 20 June 2012 20:47:27 UTC+10, dogmatic69 wrote:

The rewrite rules have changed in 2.x so make sure you update the .htaccess (and the other files in webroot / Config)

On Wednesday, 20 June 2012 06:19:26 UTC+1, elogic wrote:
Hi All,

I moved a site from one server and upgraded it from 1.3.x to 2.x and now in the url I am getting something like this: /units/staffindex?url=units%2Fstaffindex

The url=units%2Fstaffindex part is new to me. Any idea why it is now there and how do I get rid of it?

Everything works as normal, it's just not neat so I want it removed.

Thanks

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
lowpass | 3 Jul 2012 21:24
Picon

Re: url=controller/function appears now in my url address bar

On Tue, Jul 3, 2012 at 12:46 AM, elogic
<asymonds@...> wrote:
> I checked this all out but I couldn't see anything that was wrong.

Perhaps you missed it:

RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

vs

RewriteRule ^(.*)$ index.php [QSA,L]

It's the one in app/webroot that you need to change. That, or your
vhost config if you are able to put your rewrite rules there.

--

-- 
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@... For more options, visit this group
at http://groups.google.com/group/cake-php

Adam Symonds | 3 Jul 2012 23:03
Picon
Favicon

Re: url=controller/function appears now in my url address bar

Thanks, I did miss it. This did the trick.

Regards,
Adam Symonds
Elogic Media



On Wed, Jul 4, 2012 at 5:24 AM, lowpass <zijn.digital-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Tue, Jul 3, 2012 at 12:46 AM, elogic <asymonds-S/73Xwu6Eu5BmAM9bwFQPxCuuivNXqWP@public.gmane.org> wrote:
> I checked this all out but I couldn't see anything that was wrong.

Perhaps you missed it:

RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

vs

RewriteRule ^(.*)$ index.php [QSA,L]

It's the one in app/webroot that you need to change. That, or your
vhost config if you are able to put your rewrite rules there.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php

Gmane