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?
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?
I have the same issue. Don't know what to do.
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?
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?
what happens when you stick
define("URL_REWRITING_ALL", true);
in your /config/site.php, can you point us to an example?
Thanks
define("URL_REWRITING_ALL", true);
in your /config/site.php, can you point us to an example?
Thanks
This worked great for the use of $this->url('page').
it was using index.php/page, but your advice worked a treat!
Cheers
it was using index.php/page, but your advice worked a treat!
Cheers
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?
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?
both work fine for me, try sticking that line in i mentioned above
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.
Anyway, I implemented your fix and that solved the problem.
Thanks for that.
Still strange how it occurred.