Làm những việc người khác nói bạn không thể đôi khi sẽ trở thành một thói quen khó từ bỏ và thực sự trở thành niềm yêu thích của bạn!

Xin chào các bạn. Đây là trang tài liệu cá nhân. Để đây cho dễ tìm và dễ chia sẻ :)
Vui lòng tìm kiếm trang này với từ khóa 67DCM hoặc ghi nhớ địa chỉ http://cuong67.docs.lestaup.com

WordPress Tiếng Việt

Link: https://vi.wordpress.org/

1. Bỏ php.index trong link (chỉ cho phien bản này)

Tạo file  .htaccess tại thư mục wordpress

Viết thêm nội dung sau:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.87

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/wp-admin/
RewriteRule ^(.*)$ index.php/$1 [NC,L]


Viet them vao file /etc/apache2/apache2.conf nooij dung

<Directory />
        Options FollowSymLinks
        AllowOverride All                               
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All                               
        Order allow,deny
        allow from all
    </Directory>

2. Khắc phục lỗi yêu cầu đăng nhập tài khoản FTP trong WordPress

Các bạn chỉ cần thêm đoạn code sau vào file wp-config.php:
/*** FTP login settings ***/
define("FTP_HOST", "localhost");
define("FTP_USER", "ftp-user");
define("FTP_PASS", "ftp-password");
view rawwp-config.php hosted with ❤ by GitHub
Nhớ là nó phải nằm bên trên dòng:
/* That's all, stop editing! Happy blogging. */
view rawwp-config.php hosted with ❤ by GitHub
Nếu vẫn tiếp tục gặp phải thông báo lỗi, các bạn thêm tiếp đoạn code sau vào ngay bên dưới và lưu lại:
define('FS_METHOD', 'direct');
Nguon: https://wpcanban.com/wordpress/thu-thuat-wordpress/sua-loi-yeu-cau-dang-nhap-tai-khoan-ftp-trong-wordpress.html

3. Tắng dung lương  file upload

Ghi vào .htaccess  nội dung sau 

php_value upload_max_filesize 128M
 php_value post_max_size 128M
 php_value max_execution_time 300
 php_value max_input_time 300





0 nhận xét:

Đăng nhận xét

WordPress Tiếng Việt