Ama-permalinks anamandla ku-WordPress

Uhlelo lwe-WordPress permalink lungashintshwa kahle kakhulu kwizidingo zakho ngosizo lwama- tag wesakhiwo . Isethingi% postname% mhlawumbe isisombululo esivame kakhulu nesisebenzisekayo. Kodwa-ke, uma ufuna ukusebenzisa izixhumanisi zangempela ezinamandla, kufanele uqale wandise uhlelo ngekhodi lakho.


I- API enamandla yokubhala kabusha i- WordPress inikeza izinketho eziningi zokuvumelanisa uhlelo nezidingo zakho. Uma ufuna inkululeko ephelele, i-WordPress ihlelwe ngendlela yokuthi noma yimaphi ama-URL (ananoma yiliphi inani lamazinga) angenzeka. Njengomphumela, isibonelo, ikholi eya ku-

http://www.tld.com/dies/ist/eine/individuelle/url/

uhlelo

Array
(
   [0] => "dies"
   [1] => "ist"
   [2] => "eine"
   [3] => "individuelle"
   [4] => "url"
}

yenziwe. Lokhu kusho ukuthi zonke ezinye izindlela zivulekile ukuhlela i-router yakho bese ukhipha okuqukethwe okuhambisanayo. Ukuze sifeze isimilo esifunekayo, sisebenzisa izenzo ze- "rewrite_tag" ne "rewrite_rule" bese sengeza ikhodi elandelayo kufayela le-works.php lengqikithi esebenzayo:

eecc6d44ed7c18e2066e

Kubalulekile-ke ukuthi uphinde ulondoloze izilungiselelo ze-permalink (Amasethingi> Ama-Permalinks> Sebenzisa izinguquko noma, kungenjalo, shayela i- flush_rewrite_rules () isebenze kanye ) ukuze imithetho emisha isebenze. Ekugcineni, sakha ikhasi elisha nge-permalink "ukubhala kabusha" kanye nesifanekiso "ikhasi lokubhala kabusha", okufanele liqale lenziwe kusetshenziswa ifayili elilandelayo:

eecc6d44ed7c18e2066e

Ekucushweni okujwayelekile, wonke ama-URL ayatholakala. Ukuhlukahluka kwe- $ base nakho kungahlonyelwa nganoma yimaphi amafolda angaphansi asesidlekeni: Inani le- "pop / up", ngokwesibonelo, lenza i-URL itholakale

http://www.tld.com/pop/up/my/url/

Onke amanye ama-URL awathinteki - lawa acutshungulwa yiWordPress njengenjwayelo.

Emuva