Welcome Guest, Not a member yet? Register   Sign In
Use __remap to Show 404 Page
#9

[eluser]fjamal[/eluser]
[quote author="CroNiX" date="1343865319"]It probably won't work on a homepage though, as segment 1 will return FALSE as well as segment 2.

Maybe
Code:
if ($this->uri->segment(1) !== FALSE && $this->uri->segment(1) === $this->uri->segment(2))
{
  //Houston, we have a problem.
}
[/quote]

Yes, that's right, it didn't work on the homepage i.e.
Quote:http://www.example.com/ci_centric/
. However, this one
Quote:if ($this->uri->segment(1) !== FALSE && $this->uri->segment(1) === $this->uri->segment(2))
has solved the problem.

Have a good day.


Messages In This Thread
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 04:59 PM
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 06:35 PM
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 06:36 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 03:33 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 03:49 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:07 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:50 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:55 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 05:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB