WordPress Mitemo Iine Kunze, Zvakare

Wordpress apache
Nguva Yokuverenga: 2 maminitsi

Wordpress apacheWordPress yakaita nhanho huru yekushanduka-shanduka kumberi mune blogging chikuva, ichichifambisa padhuze kune yakazara-yakazara yakazara zvemukati manejimendi manejimendi nekudzokorora kwekutevera, kutsigirwa kwakawanda kwemamamenyu echinyakare, uye - chinonyanya kufadza kwandiri - rutsigiro rwemasayiti mazhinji ine domain mapping.

Kana usiri zvemukati manejimendi sisitimu junkie, zvakanaka. Iwe unogona kusvetuka izvo zvakapfuura ichi chinyorwa. Asi kune vamwe vangu techno-geeks, kodhi-misoro uye apache-dabblers, ini ndoda kugovera chimwe chinhu chinonakidza, uye chimwe chinhu chinotonhorera.

Multi-saiti chinhu chinokutendera kuti umhanye chero huwandu hweWordPress mawebhusaiti ane imwechete WordPress yekuisa. Kana iwe uchipa nzvimbo dzinoverengeka, zvakanaka nekuti iwe unogona kuisa rakatenderwa boka rematimu nemajeti, uye kumisikidza iwo kune ako evatengi saiti. Pane zvipingamupinyi zvishoma zvekugadzira mepu dzako, asi maitiro acho haana kuoma.

Imwe yenzvimbo dzedambudziko dzandakaona iri mune theme theme. Sezvo madingindira anogona kuitwa kuti awanikwe kune akawanda mawebhusaiti, chero magadzirirwo aunoita kune theme anokanganisawo chero mamwe masaiti uchishandisa iwo iwo theme pane yako yakawanda-saiti yekuisa. Maitiro angu kutenderedza izvi ndezvekudzokorodza dingindira ndisati ndatanga kugadzirisa, uye ndinyatso zita zita reti saiti yevatengi yandiri kuigadzira.

Imwe nyaya inonakidza ndeye zvinoitika mu .htaccess faira pane yako Apache server. WordPress inoda kunyora nzira pa blog-ne-blog hwaro uye inoita izvi nemutemo wekunyorazve uye php faira.

WordPress inoshandisa inotevera rewrite mutemo:

NyorazveRule ^ ([_ _ 0-9a-zA-Z -] + /) mafaira /(.+) wp-inosanganisira / ms-files.php? File = $ 2 [L]

Chaizvoizvo, chero chinhu chiri mune subdirectory ye mysite.com/files/directory inonyorwazve ku mysite.com/files/wp-includes/myblogfolderpath ...... uye apa ndipo painonakidza. Chii chinoitika kana iwe uchinyatsoda kuve nefaira pane yako server iri mysite.com/files/myfolder/myimage.jpg? Iwe unowana 404 kukanganisa, ndozvinoitika. Mutemo weApache unonyorazve unopinda mukati uye unoshandura nzira.

Ichokwadi, haungambo sangana nedambudziko iri, asi ini ndakazviwana. Ini ndaive saiti yaida kushandisa javascript widget kubva kune imwe webhusaiti, uye yaida kutsvaga mifananidzo pa mysite.com/files/Images/myfile. Sezvo pakanga pasina nzira yekuchinja iyo faira pane iyo saiti saiti, ini ndaida kutsvaga nzira yekuita izvi pane yangu server. Mhinduro iri nyore kugadzira mamiriro ekunyorazve izvo zvinoita kusarudzika kune mamwe mafaera.

Heino mhinduro:

NyorazveCond% {REQUEST_URI}! /? Mafaira / Image / file1.jpg $
NyorazveCond% {REQUEST_URI}! /? Mafaira / Image / file2.jpg $
NyorazveRule ^ ([_ _ 0-9a-zA-Z -] + /) mafaira /(.+) wp-inosanganisira / ms-files.php? File = $ 2 [L]

Mamiriro ekunyorazve anofanirwa kuiswa pamberi pemutemo wekunyorazve, kana hunyengeri uhwu hahushande. Zvinofanira kunge zviri nyore kugadzirisa mamiriro aya nekuda kwako, kana ukasangana nedambudziko rakafanana. Mhinduro yacho yakandishandira, ichindibvumidza kutsiva giraidhi yetsika pane iyo isinganyanyi kudiwa alt zvinyorwa izvo zvaisenderana neyangu dhizaini. Ndinovimba, ichakushandira iwe, zvakare.

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.