Ben iki dizeleri gibi adres:
http://localhost/web/
ve
http://localhost/web/category/
Bazen olur ki:
http://localhost/web/2/
, http://localhost/web/3/
, vb ...
ve
http://localhost/web/category/2/
, http://localhost/web/category/3/
vs ..
I want to make a verification ve:
Bağ ise http://localhost/web/
, aynı kalır.
Bağ ise http://localhost/web/2/
hale gelir http://localhost/web/
Bağ ise http://localhost/web/category/
, aynı kalır.
Bağ ise http://localhost/web/category/2/
hale gelir http://localhost/web/category/
I guess it should be done using preg_replace()
ve preg_match()
.
Ben bunu nasıl yapabilirim?
Teşekkürler.