folgendes Problem tut sich momentan bei mir auf.
will die url rewrite funktion nutzen. (was allerdings noch nicht das wirkliche problem ist )
Meine apache/conf/httpd.conf hat folgenden aufruf:
Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so
Code: Select all
php_flag magic_quotes_gpc Off
php_flag register_globals Off
RewriteEngine on
RewriteRule ^([a-z]*)\.html$ %{DOCUMENT_ROOT}/index.php?$1
RewriteRule ^(.*)\.html$ %{DOCUMENT_ROOT}/index.php?id=$1
RewriteRule ^index.html$ %{DOCUMENT_ROOT}/index.php
Code: Select all
So um die Zeile 1084
//Rewrite functions
function url_search($query)
{
if(strpos($query, "id")) $noid = substr($query, 4);
else $noid = substr($query, 1);
$file = str_replace(",", ".", $noid).".html"; //further use
//$file = $noid.".html";
$link = "<a href=\"".$file."\"";
return($link);
//unset($link);
}
phpwcms/anfrage.html ist zwar die alias übergabe in die url korrekt, allerdings jedesmal
404 - objekt net gefunden
Wo liegt der Fehler?
Danke für jede Hilfe....
hightere Grüße, Jan
---------------------------------------------------
HILFE ICH HABE VOGELGRIPPE...piep <(' ~