Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Link help  (Read 2237 times)

fuelmedia

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
    • Fuel Media Central
Link help
« on: April 30, 2008, 06:02:33 am »

ok I have a site I'm trying to get up and running at http://69.89.31.230/~wdaoneco/index.php

I am having a problem that is preventing me from editing the sNews site. when you click on site map or any other link the site goes to http://69.89.31.230/~wdaoneco/sitemap/ as it should but while you are in the site map page when you click a link anywhere else it directs the visitor to http://69.89.31.230/~wdaoneco/sitemap/login/. which I know is wrong I also recieve a 404 error. I know the site link should be http://69.89.31.230/~wdaoneco/login/.

My site is located in the root directory

here is my .htaccess

<IfModule mod_php4.c>
    php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
RewriteBase /~wdaoneco
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]

Here is my snews.php info

error_reporting(0);

/*** CONFIGURATION VARIABLES ***/

// DATABASE VARIABLES
function db($variable) {
   $db = array();
   $db['website'] = 'http://69.89.31.230/~wdaoneco/';
   $db['dbhost'] = 'localhost'; //MySQL Host
   $db['dbname'] = '******''; //Database Name
   $db['dbuname'] = '******''; //Database Username
   $db['dbpass'] = '******'; //Database password
   $db['prefix'] = ''; //Database prefix
   $db['dberror'] = '<strong>There was an error while connecting to the database.</strong> <br /> Check your database settings.'; //Database error message
   return $db[$variable];
}

Here is the index.php info
<?php session_start(); include('snewsMU.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <?php title(); ?>   
   <meta name="Robots" content="index,follow" />
   <meta name="Generator" content="sNews 1.6" />
   <link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss-articles/" />
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss-pages/" />
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss-comments/" />
</head>
<body>
   <div class="wrap">
      <div id="logo">
         <h1><?php echo s('website_title'); ?></h1>
      </div>
      
      <ul id="menu">
         <?php pages(); ?>
      </ul>
      
      <div id="subheader">
         <div id="breadcrumbs">
            <?php breadcrumbs(); ?>
         </div>
         
         <div id="search">
            <?php searchform(); ?>
         </div>   
      </div>
      
      <div id="left">
         <h3>Categories:</h3>
         <ul>
            <?php categories(); ?>
         </ul>
         
         <h3>New Articles:</h3>
         <ul>
            <?php menu_articles(0,3); ?>
         </ul>
         
         <h3>New comments:</h3>
         <ul>
            <?php new_comments(5, 30); ?>
         </ul>
               
         <?php extra(); ?>
      </div>
            
      <div id="right">
         <?php center(); ?>
      </div>
   
      <div id="footer">
         <ul id="rss">
            <p id="footer_right"><?php rss_links(); ?></p>
         </ul>
         <p>Barbecued by <a href="http://snewscms.com/" title="Single file CMS">sNews</a> &middot; <?php login_link(); ?></p>
         <p><?php users_online(); ?></p>
      </div>
   </div>
</body>
</html>

I know this is the sample file sent with my new sNewsMU.

edited by bakercad to remove database name, username & password
« Last Edit: April 30, 2008, 02:19:10 pm by bakercad »
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: Link help
« Reply #1 on: April 30, 2008, 02:19:18 pm »

Try to add in htaccess #RewriteBase /~wdaoneco
and try to remove the index in http://69.89.31.230/~wdaoneco/ or rename it
i think you have mess indexes
and tell us if is working
Logged