Tamam, ben seo URL'ler kullanmak gerekir diyelim. Nasıl aşağıdaki desen yönetmek olabilir:
www.mysite.com/{context}/{mode}/
Yani aşağıdaki gibi bildirilen değişkenler olsun sağlar:
www.mysite.com/{context}/{mode}/{var}/{val}/{var2}/{val2}...
Örneğin:
www.mysite.com/user/view/id/123
?
Solution?, How to do that?
A possibly solution could be the following:
All url are redirected to www.mysite.com/index.php.
In the index.php file i divide the url by $u = explode($ulr, '/');
: ignoring $u[0]
and considering $u[1]
as the context, $u[2]
as the mode and eventual $u[3], $u[4]...
as couples of var-values like get system index.php?var=val
.
By knowing the context and the mode the right file is included and everybody is happy.
- Ya da sadece son bölümünü (es: user/view/id/123): Nasıl url (www.mysite.com/user/view/id/123 es) alabilir?
- Bu sistemin herhangi bir eksileri var mı?