Back to Question Center
0

Bukatar taimako don fahimtar URL ɗin don abubuwan da ke ciki - Semalt

1 answers:

Kamar yadda na fahimta, shafukan yanar gizo suna iya tsara tasirin hanyar URL ko dai a cikin tsarin tsarin fayil na gida ko sunan aikace-aikacen yanar gizo.Misali na tsohon zai kasance http: // www. misali - hospedagem joomla locaweb brazil. com / index. html . A wannan yanayin, kamar yadda na fahimta, uwar garken yanar gizo zai ɗauka / gida / www / index. html fayil kuma mayar da shi zuwa requester. Misali don aikace-aikacen yanar gizo zai kasance http: // www. misali. com / get-page. php? home = aaa. html . Shin na gyara wannan samun shafin. php sunan sunan yanar gizo, i. e file script / home / www / get-page. php wanda aka kashe a uwar garke da aaa. html yana da darajar ga mai sauƙi gida aka yi amfani da wannan rubutun?

February 5, 2018

A takaice, a daidai kai ne daidai. Babban bangare na daidaitattun da kake ɓacewa shine adireshin uwar garke na URL - wanda shine ainihin buƙatar don http: // www. misali. com / aaa za a iya sarrafa shi ta hanyar sadarwa ta hanyar software na sabar yanar gizon zuwa

http: // www. misali. com / get-page. php? home = aaa. html

a matsayin hanya na samun karin adireshin mai amfani da URL ko mai kyau URL.

Idan software dinmu na intanet ɗinmu yana Apache sannan ana samun wannan ta hanyar amfani da . htaccess fayiloli da RewriteCond / RewriteRule.

Dubi mod_rewrite takardun don ƙarin bayani game da wannan.