Problem with modrewrite and win Apache 1.3.20

Discuss practical ways rearrange URLs using mod_rewrite.

Postby steptown » Mon May 20, 2002 1:51 am

Hi out there,

by now we used an Apache Webserver 1.3.14. We had modRewrite installed an
everything worked fine


Now we've installed the foxserv-package including Apache 1.3.20 on a
windows notebook system.

Everything works fine, but the modRewrite doesn't work well.

The Problem is, that the documentpath is written twice, and I don't know
why (on the Linux system it works)

To make up your mind, I've attached .htaccess,an RewriteLogFile and
httpd.conf with the most important lines.

It drives me nuts, but I don't know where to grab the problem. Maybe
there's a change in the [L] option?

Regards

Jochen

.htaccess
AddType application/x-httpd-php .php .html

> wichtig, sonst läuft es nicht
RewriteEngine on
RewriteBase /
>
RewriteRule images(.*) images$1 [L]
RewriteRule archiv.css cssdatei/archiv.css [L]
RewriteRule style.css style.css [L]
RewriteRule (.*)$ main.php [L]

Auszüge aus dem RewriteLog
(ENTSCHEIDEND SIND DIE LETZEN BEIDEN ZEILEN)
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] strip per-dir prefix:
c:/apache/docroot/costjmetzger/ekzsuche.html -> ekzsuche.html
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] applying pattern 'images(.*)' to uri
'ekzsuche.html'
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] strip per-dir prefix:
c:/apache/docroot/costjmetzger/ekzsuche.html -> ekzsuche.html
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] applying pattern 'archiv.css' to uri
'ekzsuche.html'
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] strip per-dir prefix:
c:/apache/docroot/costjmetzger/ekzsuche.html -> ekzsuche.html
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] applying pattern 'style.css' to uri
'ekzsuche.html'
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] strip per-dir prefix:
c:/apache/docroot/costjmetzger/ekzsuche.html -> ekzsuche.html
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] applying pattern '(.*)$' to uri
'ekzsuche.html'
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (2) [per-dir
c:/apache/docroot/costjmetzger/] rewrite ekzsuche.html -> main.php
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] add per-dir prefix: main.php ->
c:/apache/docroot/costjmetzger/main.php
127.0.0.1 - - [19/May/2002:11:04:40 +0200]
[localhost/sid#65628c][rid#6ff7f8/initial] (3) [per-dir
c:/apache/docroot/costjmetzger/] add per-dir prefix:
c:/apache/docroot/costjmetzger/main.php ->
c:/apache/docroot/costjmetzger/c:/apache/docroot/costjmetzger/main.php



Hier die entscheidenden Auszüge aus der httpd.conf
ServerType standalone
ServerRoot "C:/Programme/FoxServ/Apache"
DocumentRoot "C:/apache/docroot"
<Directory />
Options FollowSymLinks
>> ja ich weiß -> nur zum Testen
AllowOverride All
</Directory>

<Directory "C:apache/docroot">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "C:/apache/docroot/costjmetzger">
AllowOverride All
</Directory>

AccessFileName .htaccess

RewriteLog "logs/rewrite_it_jayjay.log"
RewriteLogLevel 9
steptown
 
Posts: 1
Joined: Sun May 19, 2002 4:00 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 1 guest

cron