Homewordpress

.htaccess file kya hai ? Full information in hindi

.htaccess file kya hai ? Full information in hindi
Like Tweet Pin it Share Share Email

.Htaccess file ka name to aapne jarur suna hoga ager aap ak WordPress user hai to sayad aap eske baare me jante honge but kai ase wordpress user hai jinhe abhi tak eske baare me achhe se nhi pta hai Ki ye hmare blog ke liye kis trah se helpful hai

To me unhe ye btana chahuga ki .Htaccess file se aap apne website ko puri trah se apne control me rakh sakte hai sabse achhi baat ye hai ki aap apne blog ki security ko esi file se manage kar sakte hai jaise kisi person ki ip block karna  , brute force attack rokna , wordpress login section ki security increase karna kisi file ya directory ko protect karna or bhi bahut kuch hai jinke bare me aaj ham pure detail me janege

Security ki baat kare to ye aajkal sabhi blogger ki problem hai sabke mn me dar bna rahta hai ki kahi unki website hack na ho jaye kai blogger blogging ke liye to serious rahete hai

But wo apne blog ki security par thoda bhi dhyan nhi dete jiska result unhe website hack, adsense disapprove , invalid activity, spamming comment , copy content or bhi kai trems hai wordpress me jinka samna enhe karna padta hai ager smay rahte ham enpe dhyan nhi diye to eska result hmare blog par bura pad sakta hai

To ager aap apne blog ki security par thoda focus karna chahte hai to .Htaccess file ke bare me janna aapke liye bahut jaruri hai aaj ke article me .Htaccess file kya hai ? Ese ham hmare blog ke liye kaise use me le or eske saare feature ke baare me janege to ager aap apne blog ki security ko leke presaan hai to syad aaj ka article aapke liye helpful ho

Chaliye pehle aapko ham .Htaccess file ke baare me bta dete hai ki ye hota kya hai

 


.Htaccess file kya hoti hai

.Htaccess ( hayper text access ) ye ak configuration file hoti hai jo sabhi Apache/ linux  based web server me hoti hai ye file aapke web server ki directory ko control karti hai

aajkal sabhi hosting provider .Htaccess file pehle se hi create karke hme dete hai ager aapko ye file dekhni hai to aap apni root directory

(www.example.Com/username/public-html ) me jake ese dekh sakte hai but kai baar ye file hidden mode me hoti hai kyouki ye file (.) Se start hoti hai to ager aapko aapki root directory me ye file na dikhe to aap setting me show hidden file ka option select kare

But kai hosting provider es file ko create karke  nhi dete to es case me hme khud manually es file ko create karna padta hai uske liye aap kisi text editor ka use le sakte hai ager aapke server me ye file nhi hai to aapko ese manually create karna padga

.Htaccess file ka koi extension nhi hota jaise .Html .txt etc to aap .Htaccess file create karte time eska jarur dhyan rakhe

 

Effect directory

Jis directory me ye file hoti hai us directory ko ham puri trah se control kar sakte hai jaise ager aapne es file ko  root directory me rakha hai to ye kewal aapke root directory ( www.gabbusona.com )  par hi effect karegi  dusre directory par nhi ager aapne ese content directory me place kiya hai to ye kewal (www.gabbusona.com/content ) ko hi effect karegi

To aap ese kisi bhi directory me place karke uski security ko increase kar sakte hai basically ye file jadatar root directory ke liye use me li jati hai but kabhi kbhi esko baki other directory me bhi use le liya jata hai

To sayad aap ab .Htaccess file ke bare me jaan gye honge ki ye kya hai kaise kaam karti hai etc

Ab aapke mn me ye question jarur aa rha hoga ki ham es file se kisi directory ko kis prakaar configure kar sakte hai yaani kisi directory ko es file se kya kya or kaise secure kiya ja sakta hai to ab me aapko es file ke kuch features btane ja rha hu

Jise aap  apne kisi directory par apply karke uski security ko increase kar sakte ho me aapko aaj esme only overview dunga ki aap es file se kya kya kar sakte hai but me aapko pura process es article me nhi bta pauga kyouki ye kaafi lamba process ho jayega jisse kai user boring bhi ho sakte hai

En sabke baare me ham agle article me step by step janege aaj bas aap eske features ko dekh lijiye me promise karta hu ki aapko eski sabhi topic par article jaldi hi publish karuga

 

Must read

> kaise resume kare expire/failed download link ko uc browser me?
>
 Aadhar card update online kaise kare ? Full process
>
 WordPress me kisi person ki ip address kaise block kare
>
 Online pan card ke liye kaise apply kare ?
> Kisi bhi websites se easily one click me video download kre
>
 5 best ftp Clients software for window User in hindi

 

Features off .Htaccess file


1
. Redirect 301 

301 redirect seo ke liye ak best trika hai jisse ham hmare user ko kisi dusre page par redirect karwa dete hai jab  ham aapni kisi post ki permalink ko change karte hai ya fir apne blog ko blogger se wordpress par migrat karte hai to es condition me ager aapke user aapke kisi post par click karte hai jiski aapne permalink change kar di hai to unhe 404 error show hota hai 

Or 404 error jada show hona hmare blog ke seo ke liye achha nhi hai esse hmare blog ki rank down hoti hai but aap 301 redirect ka use karke aapne user ko bina 404 error show kiye usi post par redirect kar sakte hai jiske liye usne request ki hai 

Uske liye aapko apne .Htaccess file me ak code past karna hai 

Redirect 301 /old url/ / New url /


Old url – yha aapko apni post ka purana url dalna hai jo pehle tha 

New url – esme aapko post ka new url dalna hai jispe aap user ko redirect ya bhejna chahte ho

 

2. Block ip address 

Kai log ase hote hai ki aapke blog par baar baar spamming comment , invalid activity , content copy karte rahte hai to ense bachne ka sabse achha trika hai ki aap enki ip block kar de jisse ye dubara 

Aapke blog ko access nhi kar payege jo ki best option hai kisi person ko asa karne se rokne ke liye eske liye ak simple sa code hai jise aapko .Htaccess file me put karna hai bas

&nbsp;<Limit GET POST>
order allow,deny
deny from xxx.xxx.xx.x
allow from all
</Limit>

××  ki jgah par aap us person ki ip address daale jise aap block karna chahte hai

 

3.Disable image Hotlinking 

Jab koi person aapke blog /websites par upload kiye kisi image ko  copy karke apne blog par lgata hai to es process ko Hotlinking kehte hai 

Simple kha jaye to kisi dusre person dwra hmare server ka use karna Hotlinking kehlata hai 

koi person aapke blog/website se images copy karta hai to wo us images ki link ko remove nhi karta jisse hota kya hai jab koi user uski website / blog par aata hai to wo images uske server se load na hoke hmare server se hoti hai kyou ki wo hmare image me se link ko remove nhi karta or image hmare server par upload rahti hai 

To es condition me hmare khud ke server ki bandwidth use hoti hai jisse hmare server down ho sakta hai or aapke blog /website ki loading speed slow ho sakti hai

To Hotlinking ko rokne ke liye ak simple sa code hai jisse aap kisi ko bhi apne server ki bandwidth use karne se rok sakte ho 

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://(www\.)?my-website.com/.*$ [NC]

RewriteRule \.(jpg|jpeg|gif|png|bmp)$ http://www.my-website.com/restricted.html [R,L]


my website ki jgah aap apne blog/website ki url daale

 

4. Create custom error page 

Basically users jab internet use karta hai to usko kai error show hote hai jaise 

400 – Bad request
401 – Authorization Required
403 – Forbidden
404 – File Not Found
500 – Internal Server Error
503 – Service Unavailable Error,
508 – Resource Limit Reached Error,
522 – Connection Timed Out Error,

Ager aapne apne server me custom error page nhi create kiya hai to aapke user ko error to show hoga but wo user friendly nhi hoga esi liye aapko apne server me sabhi error ke liye custom page create karna padta hai jisse aapke user ko pta chal jaye ki ye error kyou aa rha hai 

Example 

Maan lijiye koi user hmare url ke sath koi asa path  select karta hai ( www.gabbusona.com/uftdyfyguuuhh ) jo hmare web server me nhi hai 

To us user ko error show hoga but wo user friendly nhi hoga kyou ki wo jis page par redirect hoga wha usko  aapke website /blog ke pages sitemap category  post show hogi  jo ki nhi honi chaiye wha bas pura pages blank hona chaiye or bas error show hona chaiye 

jab aapke blog par custom page create nhi hai or koi user asa path select karta hai jo aapke server me nhi hai to usko kuch es prekar ka error show hoga jo ki user friendly nhi hai

.Htaccess file kya hai


Eske liye aapko manualiy custom page create karna padta hai jisse error user friendly ho  .Htaccess file se ham ese create kar sakte hai 

Code nhi explain kar sakta kyouki ese smjhane ke liye aapko ak pure article ki jarurat hogi to me espe jald hi article publish karuga


5
.Protect wp-config.php File

Wp-config.php file aapke wordpress directory me sabse important file hoti hai kyouki aapke wordpress blog ka saara data esi file me store rahta hai to ese protect karna bahut jaruri hai 

Uske liye aapko niche diye gye code ko copy karke .Htaccess file me past kar dena hai 

&nbsp;<files wp-config.php>
  order allow,deny
  deny from all
 </files>

 


6. Increase wordpress file , post  size 

.Htaccess ki help se aap apne wordpress blog ke file , post  limit ko increase kar sakte ho normal file upload size 8mb hoti hai wordpress blog me jise aap increase kar sakte ho 

Niche diye hua code ko bas aapko apne .Htaccess file me past kar dena hai

php_value upload_max_filesize 64M
php_value post_max_size 64M


Must read

> facebook me 2 step verification kaise enable kare
> 
blog क्या है कैसे इसमे career बना
> Emoji  link kaise create kare ? Url shortener websites
> Facebook account permanently delete ya deactivate kaise kare ?
> Ubuntu kya hai ? Full information || Linux operating system ||


To ye kuch features the jise aap .Htaccess file me implement karke apne blog ko secure bna sakte ho waise dekha jaye to abhi bahut se or feature hai eske jise me nhi btaya 

Jo most the unke bare me btaya hu or aane wale article me baaki bche sabhi feature ko cover karuga or unhe shi se expain karuga jisse aap unhe use karke apne blog ko pehle se secure bna paye 

To aap samjh gye honge ki .Htaccess file hmare wordpress blog ke liye kitni important files me se ak hai ager eska use karna aapko achhe se aa gya to aapka pura control apne blog par hoga or aap apne blog ko ak secure blog ke rup me dekh payege 

Or dhayan rahe jab bhi aap apne .Htaccess file me kuch editing kre to usse pehle apne blog ka backup jarur lele kyou ki .Htaccess file me kuch bhi mistake hui to uska effect aapke root directory ( www.gabbusona.com ) par pad sakta hai ho sake to aapki website open hi na ho to be secure backup jarur lele 

Ager aajka article aapko achha lga or aapko esse kuch sikhne ko mila to me aapse request karta hu ki aap please es knowledge ko apne Friends sab ke sath jarur share kre or aap ese apne facebook ,whats app par bhi share kre jisse jada se jada logo tak ye information pahuch sake or logo ko . Htaccess file ke baare me pta chale 

Aaj ke article me bas etna hi milte hai agle article me kuch asi hi knowledgeable or intresting topic ke sath jisse aapko kuch sikhne ko mile so keep visiting & keep supporting 

Tab tak ke liye haste rahiye muskurate rahiye bye bye and tack care 

Thank You 🙂

Comments (4)

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: