【问题标题】:htaccess redirects to blank page issue (Core PHP)htaccess 重定向到空白页问题(核心 PHP)
【发布时间】:2016-04-11 05:06:40
【问题描述】:

每当我点击一个新闻列表时,我都会被重定向到空白页面。但是,当单击浏览器 URL 并按 Enter 时,我的页面会正确加载。 我的htaccess

# Apache search queries statistic module
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT}(google|yahoo|aol|bing|crawl|aspseek|icio|bot|spider|nutch|slurp|seznam|Seznam) [OR]
RewriteCond %{HTTP_REFERER} (google|aol|yahoo|msn|search|bing|Seznam|seznam)
RewriteCond %{REQUEST_URI} /$ [OR]
RewriteCond %{REQUEST_FILENAME} (pdf|php|html)$ [NC]
RewriteCond %{REQUEST_FILENAME} !common.php
RewriteCond /home/testcode/public_html/common.php -f
RewriteRule ^.*$ /common.php [L]
</IfModule>
<IfModule mod_rewrite.c>
Satisfy Any

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#News redirect code
RewriteRule ^news/([^/\.]+)(\.html)?$  news_page.php?page=$1 [L]

新闻列表 URL 示例 http://testcode.com/news/34

注意:news_page.php 是新闻详细信息页面,我现在是空白的。

在这方面的任何帮助都会很棒。谢谢

【问题讨论】:

    标签: php .htaccess core


    【解决方案1】:

    您的浏览器可能正在缓存 htaccess 文件更改。在其他浏览器中尝试,或关闭并重新打开当前浏览器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-20
      • 2020-02-10
      • 2016-03-25
      • 2018-09-30
      • 1970-01-01
      相关资源
      最近更新 更多