rewrite_url bei Windows-Server funktioniert nicht

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Hallo Alle zusammen
Kann mir jemand sagen, warum das rewrite_url bei einem Windows-Server nicht funktioniert!?
Hab spaßenshalber in der .htaccess aus den Backslashs mal Slashs gemacht, aber leider funktioniert das ganze nicht!? :(
Immer wenn ich jetzt eine Seite aufrufe http://www.url.de/home.phtml sagt mir der Browser, dass die Datei nicht gefunden werden kann... :(



NOT FOUND
The requested URL /home.phtml was not found on this server.

Das phpWCMS liegt in keinem Unterverzeichnis
$phpwcms['DOC_ROOT'] = 'D:/webhosting/webs/www.domain.de/
Last edited by Marceau on Fri 25. Jan 2008, 14:44, edited 1 time in total.
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Hier mal der Auszug aus meiner .htaccess

Code: Select all

	# Default ReWrite settings for phpwcms
	# ===============================================
	# This will rewrite 0.0.0.0.0.0.phtml => index.php?id=0.0.0.0.0.0
	RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
	
	# This will rewrite mypage.phtml => index.php?mypage
	RewriteRule ^(.+)\.phtml$ index.php?$1
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Jensensen »

Marceau wrote:Kann mir jemand sagen, warum das rewrite_url bei einem Windows-Server nicht funktioniert!?...
ist dort das mod_rewrite.c Modul vorhanden?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Jensensen wrote:ist dort das mod_rewrite.c Modul vorhanden?
also nen mod_rewrite.c nicht aber nen mod_rewrite
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Jensensen »

Wird der Server von Dir gemanaged?
ist es ein Apache?

http://www.astahost.com/index.php?showt ... e=threaded

kurz:
in der httpd.conf am Anfang der beiden folgenden Zeilen das Zeichen --> #
entfernen. Restart...

Code: Select all

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c


Wenn IIS, musste mal googeln...
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Jensensen wrote:Wird der Server von Dir gemanaged?
ist es ein Apache?

http://www.astahost.com/index.php?showt ... e=threaded

kurz:
in der httpd.conf am Anfang der beiden folgenden Zeilen das Zeichen --> #
entfernen. Restart...

Code: Select all

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c


Wenn IIS, musste mal googeln...
Nee der Server wird nicht von mir gemanaged :( Laut phpinfo is da nen xampp drauf...also auch nen Apache...
Aber ich frage mal nach, ob die guten das für mich mal machen. Danke für die Antwort.

Liebe Grüße
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by juergen »

Hi

also mal der Versuch warum es nicht gehen kann: Windows handhabt symbolische Links anders als Unix, und eben diese benötigt das Betriebssystem des Servers um den echten Kram index.php?seite zu finden, wenn jemand seite.phtml aufruft.
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Also nach kurzer Rücksprache mit dem Betreiber des Servers, wurde mir gesagt, dass das mod_rewrite installiert sei und auch funktioniert !?! Das sind die Module die geladen werden, und da ist auch das mod_rewrite dabei:

Code: Select all

core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_cgi mod_dav mod_dav_fs mod_dir mod_env mod_include mod_info mod_isapi util_ldap mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_status mod_vhost_alias mod_ssl mod_autoindex_color mod_php5
Trotz alldem wird mir bei Aufruf

Bad Request

Your browser sent a request that this server could not understand.

angezeigt...
Hat jemand nen Lösungsansatz!? Vielen lieben Dank im Vorraus
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Niemand eine Idee, wie ich das System austricksen kann!?

LG
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Kann mir eventuell mal jemand die RewriteRules in der Standard .htaccess näher bringen. Vielleicht komm ich dann selber auf den Fehler...

Liebe Grüße
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Heiko H. »

Hallo Marceau,

vielleicht reicht dir das als Denkanstoß schon aus??? http://forum.phpwcms.org//viewtopic.php?p=68040#p68040

Sonst ist ein Blick hier sicher hilfreich (ist übrigens auch 'ne phpwcms Seite...).

Wenn's immernoch Fragen gibt, melden...

Grüße Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

Es funktioniert einfach nicht :(
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by update »

Mal 'ne doofe Frage :oops: ist die rewrite engine in der htaccess auf ON?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Marceau »

claus wrote:Mal 'ne doofe Frage :oops: ist die rewrite engine in der htaccess auf ON?
Japp
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: rewrite_url bei Windows-Server funktioniert nicht

Post by Heiko H. »

Marceau wrote:Es funktioniert einfach nicht :(
Sorry, aber das ist 'n bisschen dünn...
Was genau passiert, wenn (bei welcher Einstellung)?
Hast Du Zugriff auf Logfiles? Was steht da drin?
Je genauer Du Infos lieferst, desto wahrscheinlicher ist eine Lösung...

Bis denne, Heiko.
Not longer here - sorry...

Haubner-IT GbR Dresden
Post Reply