Sử dụng .htaccess loại bỏ “index.php” trong đường dẫn CodeIgniter – CI

07/03/2018 Nosomovo 0

Để loại bỏ “index.php” trong đường dẫn truy cập website ta tạo file .htaccess với nội dung sau: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA] </IfModule> <IfModule !mod_rewrite.c> # Without mod_rewrite, route 404’s to the front controller ErrorDocument 404 /index.php

Khắc phục lỗi “No input file specified”

19/09/2017 Nosomovo 0

1. Mô tả lỗi Lỗi này xuất hiện khi thực hiện chuyển máy chủ. Sau đó truy cập website sẽ xuất hiện câu “No input file specified.” 2. Cách khắc phục Ta chỉ cần thêm dấu chấm hỏi (?) vào sau index.php trong lệnh RewriteRule trong file .htaccess là vấn

How to use htaccess to secure, manage and optimise your website

06/09/2017 Nosomovo 0

Introduction Craig Parker our resident SEO Expert has put together a detailed document on using htaccess to how to manipulate htaccess to help secure and manage your site. Craig discusses the three major uses for htaccess, security, redirects and optimisation and gives you the code examples to implement them on