Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Rewrite working fine at localhost, not working right on server  (Read 41962 times)

satsilem

  • Newbie
  • *
  • Karma: 0
  • Posts: 10

Hello to everybody...

One more time there is a problem with sef urls
The website is working as expected in the local host installation but when migrating to server it doesnt wtite the urls as expected....

Instead of writing www.something.com/sef_url/
it writes www.something.comsef_url/

so the prefix slash is missing

The .htaccess file i am using is


        php_value session.use_trans_sid 0


RewriteEngine On
Rewritebase /
RewriteRule ^categories/$ index.php?category=categories [L,QSA]
RewriteRule ^contact/$ index.php?category=contact [L,QSA]
RewriteRule ^images/$ index.php?category=images [L,QSA]
RewriteRule ^login/$ index.php?category=login [L,QSA]
RewriteRule ^logout/$ index.php?category=logout [L,QSA]
RewriteRule ^new/$ index.php?category=new [L,QSA]
RewriteRule ^unpublished/$ index.php?category=unpublished [L,QSA]

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]


I have no experience with this so can anybody help me please
Logged

Mika

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 9
  • Posts: 1408
    • http://www.ni5ni6.com/
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

satsilem

  • Newbie
  • *
  • Karma: 0
  • Posts: 10
Rewrite working fine at localhost, not working right on server
« Reply #2 on: July 10, 2006, 11:13:06 AM »

I am so sorry

I made wrong settings at snews.php gile

Please forgive me for writing a post without double checking the settings

Please delete this thread.

So sorry and so embarassed
:(
Logged

brauck

  • sNews Dude
  • Hero Member
  • *****
  • Karma: 18
  • Posts: 572
    • http://www.hbw-webdesign.nl/
Rewrite working fine at localhost, not working right on server
« Reply #3 on: July 10, 2006, 03:34:54 PM »

Don't be embarassed; you're not the first one and will not be the last one who make a mistake; I make them all the time. :)
Logged
Confidence is reduced complexity.
brauck.nl for free css templates