Forum Moderators: phranque

Message Too Old, No Replies

rewrite code error after update server

rewrite code error after update server

         

hostingoption

6:48 am on Feb 4, 2006 (gmt 0)



Options +FollowSymlinks
RewriteEngine On
RewriteRule ^(ratings¦new¦popular¦login¦detailed¦broken)(/¦/([^./]+)?\.html?)?$ $1.php?ID=$2 [L]
\.html?)?$ $1.php?ID=$1 [L]
RewriteRule ^([^.]+)(([^./].+)?\.html?)?$ /websites.php?cat=$1 [L]

Above code is working perfect, but after update the server it is not working..

first like get the file name

domain/new/
domain/new/01-01-2006.html

Second line get

domain/Dir1/index.html
domain/Dir1/Dir2/index.html
domain/Dir1/Dir2/Dir3/index.html

After update below i did'nt get any value

Kernel version 2.4.21-37.0.1.ELsmp
Apache version 1.3.34 (Unix)
PERL version 5.8.7
PHP version 4.4.2
MySQL version 4.0.25-standard

Please help me to solve it.

extras

5:48 pm on Feb 4, 2006 (gmt 0)

10+ Year Member



The 2nd rule doesn't have "RewriteRule" directive.
\.html?)?$ $1.php?ID=$1 [L]

Possibly, you accidently erased a part of rule, and that's causing the problem.
You should check agaist backup or copy to see what is missing.