typecho 31伪静态配置

typecho 301伪静态配置

typecho 301伪静态配置,步骤一:apache启用加载htaccess文件

打开配置文件

/etc/httpd/conf/httpd.conf

找到以下节点


<
D
i
r
e
c
t
o
r
y
 

/
v
a
r
/
w
w
w
/
h
t
m
l

>
 

配置


A
l
l
o
w
O
v
e
r
r
i
d
e  None 改为
A
l
l
o
w
O
v
e
r
r
i
d
e  All

typecho 301伪静态配置,步骤二:在typecho项目根目录下添加.htaccess文件

.htaccess文件内容:

<IfModule mod_rewrite.c>                                                        
    RewriteEngine On                                                            
                                                                                
    RewriteBase /                                                               
                                                                                
    RewriteCond %{REQUEST_FILENAME} !-f                                         
                                                                                
    RewriteCond %{REQUEST_FILENAME} !-d                                         
                                                                                
    RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]                             
                                                                                
</IfModule>

typecho 301伪静态配置,步骤三:typecho后台设置伪静态

typecho配置伪静态

 

typecho 31伪静态配置

相关文章:

你感兴趣的文章:

标签云: