Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: redirecting links  (Read 2741 times)

fuelmedia

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
    • Fuel Media Central
redirecting links
« on: April 29, 2008, 08:14:21 am »

Please help me I have a site being set up here : http://69.89.31.230/~wdaoneco/

this 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 /snewsMU
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]

This is my snews.php file

error_reporting(0);

/*** CONFIGURATION VARIABLES ***/

// DATABASE VARIABLES
function db($variable) {
   $db = array();
   $db['website'] = 'http://69.89.31.230/snewsMU/';
   $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];
}


All my files are located in the snewsMU folder on the server.

Does it make a difference that when I look at my source files off the web their is a base href and all my links have a http://ip address/then the link that matches my original file on my local comp?

Thanks
Logged

Joost

  • Guest
Re: redirecting links
« Reply #1 on: April 29, 2008, 08:38:18 am »

Try this in snews.php:

$db['website'] = http://69.89.31.230/~wdaoneco/snewsMU/

and in .htaccess (this one, I am not sure of):

RewriteBase /~wdaoneco/snewsMU

Please don't start new threads for the same issue.

Regards,

Joost

Logged