【发布时间】: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 是新闻详细信息页面,我现在是空白的。
在这方面的任何帮助都会很棒。谢谢
【问题讨论】: