Join Our Telegram Channel Contact Us Join Now!

কিভাবে আপনার ওয়ার্ডপ্রেস ব্লগে অ্যাডমিন URL পরিবর্তন করবেন


আজ নিয়ে আসলাম একটি ওয়ার্ডপ্রেস টিপস অ্যাডমিন প্যানেল সম্পর্কে । ওয়ার্ডপ্রেস সাইটে সাধারণত অ্যাডমিন url থাকে http://www.yourdomain.com/wp-admin , অনেক সময় নানা ভুলের কারনে , কেও পাসওয়ার্ড পেয়ে গেলে সহজে আপনার সাইটে অ্যাডমিন হিসেবে লগ ইন করে ফেলতে পারবে । এবং সাইট এর
প্রভূত ক্ষতিসাধন করে ফেলতে পারে । বিশেষ করে বাণিজ্যিক সাইট হলে তো বড় ক্ষতির কারন হয়ে দাড়াতে পারে ।

সেজন্য আমার যদি অ্যাডমিন url টা Change করে রাখতে পারি , তাহলে সর্বশেষেও সাইট হ্যাক হওয়া থামান যেতে পারে ।

যেভাবে করবেঃ

১. Add constant to wp-confing.php

define('WP_ADMIN_DIR', 'secret-folder');
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);

২. Add below filter to functions.php
add_filter('site_url', 'wpadmin_filter', 10, 3); 
function wpadmin_filter( $url, $path, $orig_scheme ) { 
$old = array( "/(wp-admin)/"); 
$admin_dir = WP_ADMIN_DIR;
$new = array($admin_dir); 
return preg_replace( $old, $new, $url, 1); 
 }


৩. Add below line to .htaccess file

RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} [L]

কাজ শেষ , এখন আপনার অ্যাডমিন url হবে

http://www.yourdomain.com/secret-folder/

সবাইকে ধন্যবাদ।

Rate this article

Loading...

Post a Comment

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Cookies Policy

We employ the use of cookies. By accessing Lantro UI, you agreed to use cookies in agreement with the Lantro UI's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.