1. Bỏ php.index trong link (chỉ cho phien bản này)
Tạo file .htaccess tại thư mục wordpressViế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:
Nhớ là nó phải nằm bên trên dòng:
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:
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