[HELP] When News page is called News.php it dosn't work, any other name work [HELP]

Vezel

Member
Nov 20, 2012
92
4
Hi! Im using RevCMS and my News page dosn't work, this is what happens when i go to the news page:
Here is my news.php:
PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - News</title>
      
  
        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/common.css" type="text/css">
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/libs2.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/visual.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/libs.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/common.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/fullcontent.js"></script>
        <link rel="shortcut icon" href="app/tpl/skins/{skin}/static/images/favicon.gif" />
      
        <script type="text/javascript">
            document.habboLoggedIn = true;
            var habboName = "{username}";
            var habboId = {userid};
            var habboReqPath = "";
            var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
            var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
            var habboPartner = "";
            var habboDefaultClientPopupUrl = "{url}/client";
            window.name = "habboMain";
            if (typeof HabboClient != "undefined") {
                HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
                HabboClient.maximizeWindow = true;
            }
        </script>
      
        <!--[if IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie8.css" type="text/css">
        <![endif]-->
        <!--[if lt IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie.css" type="text/css" />
        <![endif]-->
        <!--[if lt IE 7]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie6.css" type="text/css" />
            <script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/pngfix.js"></script>
            <script type="text/javascript">
                try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
            </script>
            <style type="text/css">
                body { behavior: url({url}/app/tpl/skins/Custom-Habbo/js/csshover.htc); }
            </style>
        <![endif]-->
    </head>
  
    <body id="news">
    <script src=""></script>
        <div id="overlay"></div>
        <div id="header-container">
            <div id="header" class="clearfix">
                <h1><a href="{url}/"></a></h1>
                <div id="subnavi">
                     <div id="subnavi-user">
                                       <div style="margin-top:6px">
                                    <img src="{url}/app/tpl/skins/{skin}/images/icons/message.gif" /> Welcome back, <b>{userName}</b>! &nbsp; &nbsp;
                                    <img src="{url}/app/tpl/skins/{skin}/images/icons/stats.gif" /> {online} Users Online &nbsp; &nbsp;
                                    <img src="{url}/app/tpl/skins/{skin}/images/icons/credits.gif" /> {coins} &nbsp; &nbsp;
                                    <img src="{url}/app/tpl/skins/{skin}/images/icons/pixels.gif" /> {activityPoints} &nbsp; &nbsp;
                                  
</div>
                      
                    </div>
                
                    <div id="to-hotel">
                    <a href="{url}/logout" class="new-button red-button" style="margin-right:5px;margin-left:5px;"><b>Logout</b><i></i></a>
                        <a href="{url}/api.php" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName}</b><i></i></a>
                    </div>
                </div>
                <ul id="navi">
                    <ul id="navi"><li id="tab-register-now" class="tab-register-now"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/Habbo/images/id.png" style="vertical-align: middle;"></a><span></span></li>
                    <li class="selected"><strong>Community <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li>
                    <li id="tab-register-now" class="tab-register-now"><a href="{url}/shop">Shop</a><span></span></li>
                    <li><a href="{url}/Values">Rare Values</a><span></span></li>
                </ul>
               <div id="habbos-online">
    <div id="content">
        <div class="cbb ">
<span>{online} members online</span></div>
    </div></div></div></div></div></div></div></div></div></div></div>
            </div>
        </div>
        <div id="content-container">
            <div id="navi2-container" class="pngbg">
                <div id="navi2" class="pngbg clearfix">
                    <ul>
                        <li class=""><a href="{url}/community">Community</a></li>
                        <li class="selected">News</li>
                         <li class=""><a href="{url}/staff">Staff</li>
                        <li class=""><a href="{url}/events">Moderators</a></li>
                        <li class=""><a href="{url}/topstats">Top Users</a></li>
                    </ul>
                </div>
            </div>
      
            <div id="container">
                <div id="content" style="position: relative" class="clearfix">
                    <div id="column1" class="column">
                        <div class="habblet-container ">      
                            <div class="cbb clearfix default ">
                                <h2 class="title">News</h2>
                                <div id="article-archive">
                                    <ul>
                                    {newsList}
                                    
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                    </div>
                    <div id="column2" class="column">
                        <div class="habblet-container ">      
                            <div class="cbb clearfix notitle ">
                                <div id="article-wrapper">
                                    <h2>{newsTitle}</h2>
                                    <div class="article-meta">Posted {newsDate}</div>
                              
                                    <div class="article-body">
                                        {newsContent}
                                        <br><br>
                                        <p><font face="Verdana" size="1"><b>- {newsAuthor}</b></p>
                                        <script type="text/javascript" language="Javascript">
                                            document.observe("dom:loaded", function() {
                                                $$('.article-images a').each(function(a) {
                                                    Event.observe(a, 'click', function(e) {
                                                        Event.stop(e);
                                                        Overlay.lightbox(a.href, "Image is loading");
                                                    });
                                                });
                                              
                                                $$('a.article-2729').each(function(a) {
                                                    a.replace(a.innerHTML);
                                                });
                                            });
                                        </script>
                                    </div></div>
                              </div>  </div>
                                  
                              </div>  </div>
                            </div>
                        </div>
        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
        <script type="text/javascript">
            HabboView.run();
        </script>

        <!--[if lt IE 7]>
            <script type="text/javascript">
                Pngfix.doPngImageFix();
            </script>
        <![endif]-->

      <?php include_once('footer.php'); ?>       
      <?php include_once('checktheban.php'); ?>
    </body>
</html>

Update: Ok, just figured out that if I change news.php to any other name the site works, anyide why?
 
Last edited by a moderator:

Vezel

Member
Nov 20, 2012
92
4
here's my web.config:
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
            <rule name="Imported Rule 424310" stopProcessing="true">
                    <match url="^community/staff$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=staff" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 42431d0" stopProcessing="true">
                    <match url="^account/referrals$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=referrals" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 42410" stopProcessing="true">
                    <match url="^shop/badge$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=badgeshop" appendQueryString="true" />
                </rule>
             <rule name="Rule 1">
                    <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 1213123">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 83" stopProcessing="true">
                    <match url="^pages/rules$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=rules" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 10" stopProcessing="true">
                    <match url="^me/settings$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=settings" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 11" stopProcessing="true">
                    <match url="^pages/terms$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=terms" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 12" stopProcessing="true">
                    <match url="^pages/privacy$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=privacy" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 14" stopProcessing="true">
                    <match url="^account/banned$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=banned" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 15" stopProcessing="true">
                    <match url="^account/logout$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=logout" appendQueryString="true" />
                </rule>
                <rule name="novote">
                    <match url="^index/novote(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=index&amp;novote" />
                </rule>
                            <rule name="Imported Rule 1-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                                            <rule name="Importetwad Rule 1-1">
                    <match url="^register/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=register&amp;referrer={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 1e-2" stopProcessing="true">
                    <match url="^error/notfound$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=404" appendQueryString="true" />
                </rule>
               
            </rules>
        </rewrite>
        <httpErrors>
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="http://habzen.co.uk" responseMode="Redirect" />
        </httpErrors>
    </system.webServer>
</configuration>
.htaccess:
HTML:
# Helicon Ape version 3.1.0.110

RewriteEngine On

RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]
RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1
RewriteRule ^corps/(.*)/?$ index.php?url=corps&id=$1 [L,QSA]
RewriteRule ^business/jobs$ index.php?url=jobs [L,QSA]
RewriteRule ^business/create$ index.php?url=create [L,QSA]
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
Post your .htaccess :D I just want to take a look at it.
He's using IIS, so it'd be a web.config file

here's my web.config:
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
            <rule name="Imported Rule 424310" stopProcessing="true">
                    <match url="^community/staff$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=staff" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 42431d0" stopProcessing="true">
                    <match url="^account/referrals$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=referrals" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 42410" stopProcessing="true">
                    <match url="^shop/badge$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=badgeshop" appendQueryString="true" />
                </rule>
             <rule name="Rule 1">
                    <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 1213123">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 83" stopProcessing="true">
                    <match url="^pages/rules$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=rules" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 10" stopProcessing="true">
                    <match url="^me/settings$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=settings" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 11" stopProcessing="true">
                    <match url="^pages/terms$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=terms" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 12" stopProcessing="true">
                    <match url="^pages/privacy$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=privacy" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 14" stopProcessing="true">
                    <match url="^account/banned$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=banned" appendQueryString="true" />
                </rule>
                 <rule name="Imported Rule 15" stopProcessing="true">
                    <match url="^account/logout$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=logout" appendQueryString="true" />
                </rule>
                <rule name="novote">
                    <match url="^index/novote(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=index&amp;novote" />
                </rule>
                            <rule name="Imported Rule 1-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                                            <rule name="Importetwad Rule 1-1">
                    <match url="^register/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=register&amp;referrer={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 1e-2" stopProcessing="true">
                    <match url="^error/notfound$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=404" appendQueryString="true" />
                </rule>
              
            </rules>
        </rewrite>
        <httpErrors>
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="http://habzen.co.uk" responseMode="Redirect" />
        </httpErrors>
    </system.webServer>
</configuration>
.htaccess:
HTML:
# Helicon Ape version 3.1.0.110

RewriteEngine On

RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]
RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1
RewriteRule ^corps/(.*)/?$ index.php?url=corps&id=$1 [L,QSA]
RewriteRule ^business/jobs$ index.php?url=jobs [L,QSA]
RewriteRule ^business/create$ index.php?url=create [L,QSA]
You have no rules for news.php
 
Last edited by a moderator:

Users who are viewing this thread

Top