RewriteEngine on
RewriteCond $1 !^(index/.php|images|robots/.txt) //排除文件或文件夾跳轉
RewriteRule ^(.*)$ /index.php/$1 [L] //設置跳轉
保存成 .htaccess
fopen('.htaccess','+w'); //生成文件.htaccess
RewriteEngine on
RewriteCond $1 !^(index/.php|images|robots/.txt) //排除文件或文件夾跳轉
RewriteRule ^(.*)$ /index.php/$1 [L] //設置跳轉
保存成 .htaccess
fopen('.htaccess','+w'); //生成文件.htaccess
# 基於 NCSA 服務器的配置文件 由 Rob McCool 編寫!## Apache服務器主配置文件. 包括服務器指令的目錄設置.# 詳見 <U
第一、Apache服務器的搭建 1、基本概念 網站頁面的技術:靜態和動態 靜態頁面:除了格式化的標籤以外,頁面有什麼內容就有什麼內容 ,一般頁面的後綴: .html .h
1.打開apache的配置文件,conf/httpd.conf : LoadModule rewrite_module modules/mod_