peri hoki perihoki clarustologistics rimashaop.com angelpaintingtools.co.in vrjanaenergies.com gates of olympus perihoki jadi mesin uang paling gacor trik main baccarat perihoki ala pro bikin pemula jadi jutawan pantang pulang sebelum jackpot main dadu sicbo perihoki pgsoft mahjong ways 2 muncul scatter merah tiap spin perihoki cara menciptakan akun perihokigacor mahjong wins 3 jackpot kembar mahjong wins 3 abc1131 cara menang stabil rtp mahjong ways abc1131 bu nurlina menang 197 juta mahjong ways 2 mahasiswa cuan 421 juta karena pola mahjong pemilik warung menang 128 juta mahjong wins 3 strategi bravy erika mahjong abc1131 terungkap pemuda jambi taklukkan mahjong wins 3 penjual jamu menang besar mahjong wins 5 pemuda kampung raup 180 juta mahjong ways kisah inspiratif petani mahjong ways keberhasilan mahasiswa menang 92 juta mahjong ways modal warung kopi bang ojak sukses mahjong ways tanpa modal maxwin mahjong wins 3 strategi bocoran mahjong ways spin kombinasi cara bermain mahjong untuk meraih keberuntungan keajaiban mahjong kasir indomaret sukses beli tanah meraup keuntungan maksimal di mahjong wins id rahasia scatter hitam id pola scatter id jackpot mahjong ways id spin mahjong wins id tips jitu mahjong rahasia kemenangan mahjong ways spin slow
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 282
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent
Filename: Session/Session.php
Line Number: 294
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 304
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 314
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 315
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: Session/Session.php
Line Number: 375
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Filename: drivers/Session_files_driver.php
Line Number: 108
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_save_handler(): Cannot change save handler when headers already sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Cannot start session when headers already sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/blogchuabenh/domains/freetuts.net/public_html/site/controllers/Main_controller.php
Line: 10
Function: __construct
File: /home/blogchuabenh/domains/freetuts.net/public_html/sources/index.php
Line: 299
Function: require_once
File: /home/blogchuabenh/domains/freetuts.net/public_html/index.php
Line: 26
Function: require_once
File htaccess - Freetuts
HỌC HTACCESS
CÁC CHỦ ĐỀ
BÀI MỚI NHẤT
Học Htaccess
Danh sách các bài viết trong chuyên mục Học Htaccess, đây là những bài viết mới nhất được cập nhật trong mục Học Htaccess.
Thông thường để cấu hình cho Server Linux thì ta phải có kiến thức về quản trị mạng Linux, điều này đôi khi gây khó khăn cho các lập trình viên. Vậy có cách nào khắc phục vấn đề này mà không cần đăng nhập vào tài khoản phía Server?
Ở Server có một file đặc biệt tên là .htaccess, file này có nhiệm vụ khai báo cấu hình cho các folder kể từ folder mà nó đang đứng. Ví dụ bạn đang ở folder sources/.htaccess
thì tất cả các folder con của folder sources
cũng bị ảnh hưởng bởi file này. Bạn có thể khai báo cấm người dùng truy cập vào folder, đặt mật khẩu cho folder, và đặc biệt hơn nữa đó là quản lý đường dẫn như rewrite URL, redirect URL. Đó là đối với Linux, còn đối với Window thì file này sẽ có tên là web.config và tác dụng của nó cũng tương tự, tuy nhiên về cú pháp sử dụng thì hai file .htaccess và web.config sẽ khác nhau.
File .htaccess sử dụng cú pháp của Regular Expression nên để sử dụng thành thạo thì bắt buộc ban phải biết các quy tắc căn bản trong RegExp, bạn không cần phải biết sâu mà chỉ cần biết các cú pháp RegExp căn bản là được. Ngoài ra nó còn có cú pháp riêng mà ban phải học thuộc để biết mà điều hướng đúng cách.
Như vậy công dụng của file .htaccess trong một project PHP là giúp khai báo cấu hình cho project đó như viết lại đường dẫn, bảo mật file, đặt mật khẩu cho file, bật cache client để tối ưu hóa tốc độ cho website. Và trong series này sẽ tổng hợp tất cả các vấn đề này, mời các bạn theo dõi.
Bài xem nhiều