Getting index.php in some urls

Permalink
Hi,

I'm getting index.php appearing in some of my urls.

EG

http://australiancoralfarms.com.au/index.php/corals/...

It only happens on a few, and it seems to be if a redirect is involved.

Most are fine.

Anyone know why this is happening?

 
norsemengrp replied on at Permalink Reply
norsemengrp
I have the same issue. Don't know what to do.
frz replied on at Permalink Reply
frz
how are you getting there?

Right now the only thing in concrete5 that should default to these urls (assuming you have pretty urls on) is the search block. Is there another case we're missing? It sounds like you're saying when someone hits one of the urls that are additionally mapped via page paths?
Mnkras replied on at Permalink Reply
Mnkras
what happens when you stick

define("URL_REWRITING_ALL", true);

in your /config/site.php, can you point us to an example?

Thanks
davidofadelaide replied on at Permalink Reply
davidofadelaide
This worked great for the use of $this->url('page').

it was using index.php/page, but your advice worked a treat!

Cheers
mdg replied on at Permalink Reply
No, it's not from additionally mapped paths.

And it may not be to do with the page itself.

IE When I tryhttp://australiancoralfarms.com.au/corals...

No problem.

But sometimes a link will go tohttp://australiancoralfarms.com.au/index.php/corals...

More info

I've just checked two pages: One which is adding the index.php to the url and one where it is not.

They both use the same template, they both have the same setup, they are both within the same section of the site.

EG

With Echinoporahttp://australiancoralfarms.com.au/corals/hard-corals/echinopora... you can select it from either the drop down menu or the side menu and it works fine.

However, if you select Lepastrea from either menu you get the index.php link

http://australiancoralfarms.com.au/index.php/corals/hard-corals/lep...

As I said both these links are part of the same blocks and set up, so how can one behave different to the other?

(Not just for this page either.)

I've checked my links and they don't have the index.php in them.

What could be causing it?
Mnkras replied on at Permalink Reply
Mnkras
both work fine for me, try sticking that line in i mentioned above
mdg replied on at Permalink Reply
Well yes, they do both work, but one has the index.php in the url.

Anyway, I implemented your fix and that solved the problem.

Thanks for that.

Still strange how it occurred.