Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: not display image and css admin, contact, archive site map ..  (Read 3893 times)

comez

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
not display image and css admin, contact, archive site map ..
« on: October 24, 2006, 07:29:21 PM »

hi

snews perfect cms

my new desing template snews integration so

home page no problem

later

admin page, contact page , archives page and sitemap page not display css and images

normally
http://localhost/site/images/img.jpg
picture(css) is displaying

but

http://localhost/site/contact/ page be opened images and css isn't displaying

conact page source code new adres http://localhost/site/contact/images/img.jpg

problem file in .htaccess ?

my .htacces source code

Code: [Select]

    php_value session.use_trans_sid 0

RewriteEngine On
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 articlespage=$2 [L]
and i'am snews 1.5 RC2 useing

thanks great works..
Logged

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
not display image and css admin, contact, archive site map ..
« Reply #1 on: October 25, 2006, 05:46:31 AM »

Hi Comez,
Well, I don't understand correctly your post... but I'll try to help you.
First of all, take a double check at snews.php config line:
Code: [Select]
$db['website'] = 'http://localhost/'; // Path to your sNews installationRemember the _important_ " / " slash at the end of your URL.
If your installation of sNews don't resides inside of the _root_ of your apache server and you have make a directory for it, don't miss to put this directory reference into the line of your snews.php config, like this:
Code: [Select]
$db['website'] = 'http://localhost/mydirectory/'; // Path to your sNews installationOffcourse, you need to provide, into your .htaccess file, this reference of your folder, like tihs example:
Code: [Select]

    php_value session.use_trans_sid 0

RewriteEngine On
RewriteBase /mydirectory
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 articlespage=$2 [L]
I hope this helps for you.
Thanks,
bram.
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol

comez

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
not display image and css admin, contact, archive site map ..
« Reply #2 on: October 25, 2006, 02:54:28 PM »

thak you bramsyuur , working :)

god bless you (;
Logged