Htaccess File Kya Hai – .htaccess File Create, Upload & Edit Kaise Kare

0
32

WordPress me bahut se aise features available hote hai, jisme se ek hai .htaccess file. Agar aap WP blogging platform par new hai to aapke liye ye bahut jaruri hai ki .htaccess file kya hoti hai aur ise kaise create, upload and edit karte hai.

Apne wordpress blog ko fully control karne ke liye ek blogger ko .htaccess file ki puri jankari honi chahiye. Jisse site par kisi bhi function ko apni jarurat ke anusar change ya edit kar sakte hai.

.htaccess file kya hai?

WordPress me .htaccess file text text file hoti hai. Jo .(dot) se start hoti hai. Jiska matlab ki ye ek hidden tool hai jo humesha apache server se connect rehta hai.

Apne site me affiliate link cloaking, Gzip compression, upload size increase karne ya file root directory me editing karne ke liye .htaccess file ka hi use hota hai.

WordPress me .htaccess file create kaise kare?

.htaccess file create karke apne web server par add karne ke pehle ye confirm karle ke waha pe ye pehle se to majud nahi hai. Kyuki jab aap apne hosting cpanel par wordpress install karte ho to ye file automatically create ho jati hai.

.htaccess file ki availability check karne ke liye aap yoast seo plugin se check kar sakte ho. Jiske liye aap yoast seo >> tools >> file editor jaye. Waha aapko iska folder mil jayega.

Agar folder empty hoga to aapko ye manually create karke waha folder me add karni padegi.

.htaccess file create karne ke liye niche likhe code ko copy kare and notepad ki madad se ek .txt file bana le. Yaha aapko niche likha code add karna hai.

# BEGIN WordPress  RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} ! RewriteCond %{REQUEST_FILENAME} ! RewriteRule . /index.php [L] # END WordPress

Agar aap chahe to is text to directly yoast seo file editor ke htaccess section me directly copy paste kar sakte ho. Otherwise apne Cpanel se domain root directory me bhi upload kar sakte ho.

Hosting Cpanel me .htaccess file upload kaise kare?

Apne hosting server par htaccess file upload karne ke liye apne hosting me login kare aur fir Cpanel me jaye.

Yaha se aap file manage >> public_html >> select your prefer domain >> upload par click kare.

Upload window me apni created .htaccess text file upload kare, aur “Permission” me 644 hai to use change karke 777 kare.

Finally aapka kaam ho gya hai.

To ab aap jaan gaye honge ki .htaccess file kya hota hai aur ise alag alag tarike se kaise create and upload kiya jata hai.

How to edit .htaccess file In Hindi?

Htaccess file ko file editor plugin jaise yoast seo ya cpanel file manager, 2 tarike de edit kiya ja sakta hai.

WordPress dashboard me yoast seo >> tools>> file editor se ko easily kar sakte hai.

Hosting Cpanel se .htaccess file ko edit karne ke liye abse pahle apne hosting account me login karke, Cpanel me file manager >> Web root directory >> show hidden files select kare.

Ab file maneger open kare yaha aapko public_html directory me .htaccess file show karegi. Uspe right click karke edit pe click kare. To ek text file editor open ho jayega. Yaha se aap file ko edit kar sakte ho.

Important note: I suggest htaccess file ko bahut carefully edit and changement karna chahiye. So editing se pehel iska backup le lijiye. Kyuki ek chhoti si mistake se aapki site down ho sakti hai.

Agar aapka is post se related sawal ho to comment section me pushe. Harpreetkumar Hindi blog par future me publsih hone wali posts ki jankari apne email box me pane ke liye aaj hi subscribe kare.

LEAVE A REPLY

Please enter your comment!
Please enter your name here