Welcome Guest, Not a member yet? Register   Sign In
Hello. I just posted a new "tutorial" about having "truly" SEO urls
#5

(03-23-2016, 08:32 PM)nguyenanhnhan Wrote: Hello,
Thank you for sharing ,

In the code has some problems when applied .
Eg: base ( ' auth / edit_user / 1 ' )  --- >  real url : localhost / authedit-user
not "/" and parameter

I think you should add a few lines of code :

line 54 :
Code:
$url .= str_replace( '_' , '-' , $segments[0] . '/');

and
Code:
if (count($segments) > 2)
{
   for ($i = 2; $i < count($segments); $i++)
   {
         $url .= '/'.$segments[$i];
   }
}
above : header('Location: '...........);

Thank you for looking at it. I just changed it. I usually do tutorials on fresh installs and I didn't think of testing it on something else than the Welcome controller  Wink .
Reply


Messages In This Thread
RE: Hello. I just posted a new "tutorial" about having "truly" SEO urls - by Avenirer - 03-24-2016, 12:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB