ممکن است این سوال برای شما هم پیش آمده باشد که چگونه می توانیم به یک Add-on Domain پارک کنیم؟
فرض کنید ما می خواهیم دامین parked.com را روی دامین add-on.com پارک کنیم.
برای این کار ابتدا یک Add-on domain معمولی درست کنید (add-on.com) و اطلاعات را در آن upload کنید.
سپس یک Add-on domain دیگر به وجود آورید. (برای مثال parked.com) این دامین، روی add-on.com پارک خواهد شد.
حالا به شاخه ی parked بروید و این کد را در فایل .htaccess اضافه کنید.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^parked.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.parked.com$
RewriteRule ^(.*)$ http://www.add-on-domain.com/$1 [R=301,L]
همین، تمام!
Update the .htaccess file before the WordPress information and add the following two lines of code:
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
The finished .htaccess should look like:
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Password Protect Directories
Password protecting a directory restricts access to certain parts of your website by requiring visitors to enter a username and a password. This password process is also referred to as a type of “authentication” process.
While using this feature, navigate the directories by clicking the folder icon located next to the name of the directory. Clicking on the name of the directory will select the directory for password protection.
Note: Any subdirectories inside the selected directory will also be password protected.
Password Protect a Directory
To password protect your directory:
- Click the checkbox next to Password protect this directory.
- Using the Name the protected directory field, assign a name to the password protected directory. (This is the name visitors will see. It can appear as anything, no matter what the directory is called.)
- Click Save.
Create a User
- Enter the username, new password, and password confirmation in the appropriate boxes.
- Click Add/modify authorized user.
Note: The new user’s name will be added to the listbox under the Authorized Users heading, where it can be removed later.
Remove a User
To delete password protection for a user:
- Select the desired account name in the listbox beneath the Authorized Users heading.
- While the name is highlighted, click the Delete User button to delete the account.
Remove Password Protection
- To remove password protection from the directory, uncheck Password protect this directory.
به وردپرس خوش آمدید.این نخستین نوشتهی شماست. میتوانید ویرایش یا پاکش کنید و پس از آن وبلاگ نویسی را آغاز کنید!