emlog个人博客系统301重定向怎么做?

日期:2024-03-08 编辑:ucbug下载站

emlog个人博客系统301重定向怎么做?

Linux 主机 Apache服务器 Mod-Rewrite 模式:修改.htaccess文件









 

<IfModule mod_rewrite.c>
                       RewriteEngine on
                       RewriteCond %{HTTP_HOST} ^***.cn$ [NC]
                       RewriteRule ^(.*)$ http://www.***.cn/$1 [R=301]
                       RewriteCond %{REQUEST_FILENAME} !-f
                       RewriteCond %{REQUEST_FILENAME} !-d
                       RewriteBase /
                       RewriteRule . /index.php [L]
                    </IfModule>

Windows 主机 Apache服务器 Mod-Rewrite 模式:修改.htaccess文件

 

 

 

 

 

 

 

 

 

<IfModule mod_rewrite.c>

                       RewriteEngine on

                       RewriteCond %{HTTP_HOST} ^***.cn$ [NC]

                       RewriteRule ^(.*)$ http://www.***.cn/$1 [R=301]

                       RewriteCond %{REQUEST_FILENAME} !-f

                       RewriteCond %{REQUEST_FILENAME} !-d

                       RewriteBase /

                       RewriteRule ^(.*)$ /index.php/$1 [L]

                    </IfModule>


相关下载
相关文章
猜你喜欢