关于TPshop2.0访问内页跳转首页问题

    xiaoxiao2021-03-25  131

    原因在于空间所使用的PHP是fast_cgi模式,而在某些情况下, 不能正确识别path_info所造成的错误

    摘抄自: http://www.cr173.com/html/19352_1.html

    此处使用网站空间来自90起航(非广告)

    TPshop2.0根目录.htaccess 原:

    <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule>

    修改后可以正常使用的:

    <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
    转载请注明原文地址: https://ju.6miu.com/read-5508.html

    最新回复(0)