1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

mod_rewrite doesn't seems to work...

Discussion in 'Apache' started by zeroborg, Apr 27, 2007.

  1. #1
    Hi all...

    I can't make mod_rewrite to work. I use apache 2 with PLESK server on it.
    I add the vhost.conf to /srv/www/vhosts/domain.com/conf with the following data:
    ===================
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^([^/]*)\.html$ /km/index.php?page=$1 [L]
    ===================

    I run /usr/local/psa/admin/sbin/websrvmng -v -a
    (this is to make apache to include the vhost.conf file)

    I restart apache.

    And when i try to see the result to page:
    http://www.domain.com/km/index.php?page=1000
    (which has to be retyped to: http://www.domain.com/1000.html )
    nothing happens...
    The rewrite works on the background. When i examined the logs of the rewrite engine i found that it PASSES THROUGH anything...
    ==================
    (2) init rewrite engine with requested uri /km/index.php
    (3) applying pattern '^([^/]*)\.html$' to uri '/km/index.php'
    (1) pass through /km/index.php
    ==================

    Does anyone knows why? Please advise.
    Thank you.

    Zeroborg.
     
    zeroborg, Apr 27, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Move it to domain.com/.htaccess
     
    Nintendo, Apr 27, 2007 IP