Zum Inhalt springen

simulateStatic Problem

Erstellt am 21. August 2004 · 23 Antworten · letzte Antwort am 26. August 2004 · Seite 1 von 2

Tags: Frage

dezimal ·

"simulateStatic" Habe der Datei htaccess den Eintrag hinzugefügt:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^[^/]*.html$ index.php

in meiner Setup:

page = PAGE
page.typeNum = 0
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/vorlage/basic.htm
stylesheet = fileadmin/vorlage/basic.css
workOnSubpart = DOKUMENT
#menu
marks {
MENUE1 = HMENU
MENUE1 = HMENU
MENUE1.special = directory
MENUE1.special.value = 1
MENUE1.1 = TMENU
MENUE1.1.NO = 1
MENUE1.1.NO.linkWrap =   |  |
}
#menu.Klickpfad
marks.KLICKPFAD = HMENU
marks.KLICKPFAD {
spezial = rootline
special.range = 0|-1
1 = TMENU
1.target = _self
1.wrap = <font face="Arial" size="1">|</font>
1.NO.linkWrap = |>
}
marks.INHALT = CONTENT
marks.INHALT < styles.content.get
marks.INHALT.select.orderBy = sorting
marks.INHALT_LINKS = CONTENT
marks.INHALT_LINKS < styles.content.getLeft
marks.INHALT_LINKS.select.orderBy = sorting
marks.INHALT_RECHTS = CONTENT
marks.INHALT_RECHTS < styles.content.getRight
marks.INHALT_RECHTS.select.orderBy = sorting
marks.BANNER_HAUPT = IMAGE
marks.BANNER_HAUPT.file = fileadmin/vorlage/banner.gif
marks.BANNER_HAUPT.altText = {$BANNER_ALT}
marks.BANNER_HAUPT.wrap = <a target="_blank" href="">| </a>
}
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config.simulateStaticDocuments_addTitle = 36
config.absRefPrefix = http://www.basic-net.org/
}
eingefügt. Aber leider ohne Erfolg. Kann die einzelnen Menüpunkte nicht aufrufen Fehler HTTP 404 - Datei nicht gefunden
Internet Explorer
www.basic-net.org

c4c ·

Hallo Dezimal!

Generell zähle ich mal mehr Klammern die "schließen" als die "öffnen"

Die letzte Klammer unter dem Config-Bereich ist auf jeden Fall zuviel ?!

Leider weiss ich nicht, ob das die Lösung deines Problems ist.

Beste Grüße
werkraum.stEvo

dezimal ·

SO besser?? 🙂
Schade das DU mir nicht weiterhelfen kannst 🙁

page = PAGE
page.typeNum = 0
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/vorlage/basic.htm
stylesheet = fileadmin/vorlage/basic.css
workOnSubpart = DOKUMENT
#menu
marks {
MENUE1 = HMENU
MENUE1 = HMENU
MENUE1.special = directory
MENUE1.special.value = 1
MENUE1.1 = TMENU
MENUE1.1.NO = 1
MENUE1.1.NO.linkWrap = &nbsp; | &nbsp;|
}
#menu.Klickpfad
marks.KLICKPFAD = HMENU
marks.KLICKPFAD {
spezial = rootline
special.range = 0|-1
1 = TMENU
1.target = _self
1.wrap = <font face="Arial" size="1">|</font>
1.NO.linkWrap = |>
}
marks.INHALT = CONTENT
marks.INHALT < styles.content.get
marks.INHALT.select.orderBy = sorting
marks.INHALT_LINKS = CONTENT
marks.INHALT_LINKS < styles.content.getLeft
marks.INHALT_LINKS.select.orderBy = sorting
marks.INHALT_RECHTS = CONTENT
marks.INHALT_RECHTS < styles.content.getRight
marks.INHALT_RECHTS.select.orderBy = sorting
marks.BANNER_HAUPT = IMAGE
marks.BANNER_HAUPT.file = fileadmin/vorlage/banner.gif
marks.BANNER_HAUPT.altText = {$BANNER_ALT}
marks.BANNER_HAUPT.wrap = <a target="_blank" href="">| </a>
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config.simulateStaticDocuments_addTitle = 36
config.absRefPrefix = http://www.basic-net.org/

jenses ·

Jetzt fehlt aber eine schließende Klammer !

Versuchs doch mal so :

page = PAGE 
page.typeNum = 0 
page.10 = TEMPLATE 
page.10 { 
template = FILE 
template.file = fileadmin/vorlage/basic.htm 
stylesheet = fileadmin/vorlage/basic.css 
workOnSubpart = DOKUMENT 
#menu 
marks { 
MENUE1 = HMENU 
MENUE1 = HMENU 
MENUE1.special = directory 
MENUE1.special.value = 1 
MENUE1.1 = TMENU 
MENUE1.1.NO = 1 
MENUE1.1.NO.linkWrap = &nbsp; | &nbsp;| 
} 
#menu.Klickpfad 
marks.KLICKPFAD = HMENU 
marks.KLICKPFAD { 
spezial = rootline 
special.range = 0|-1 
1 = TMENU 
1.target = _self 
1.wrap = <font face="Arial" size="1">|</font> 
1.NO.linkWrap = |> 
} 
marks.INHALT = CONTENT 
marks.INHALT < styles.content.get 
marks.INHALT.select.orderBy = sorting 
marks.INHALT_LINKS = CONTENT 
marks.INHALT_LINKS < styles.content.getLeft 
marks.INHALT_LINKS.select.orderBy = sorting 
marks.INHALT_RECHTS = CONTENT 
marks.INHALT_RECHTS < styles.content.getRight 
marks.INHALT_RECHTS.select.orderBy = sorting 
marks.BANNER_HAUPT = IMAGE 
marks.BANNER_HAUPT.file = fileadmin/vorlage/banner.gif 
marks.BANNER_HAUPT.altText = {$BANNER_ALT} 
marks.BANNER_HAUPT.wrap = <a target="_blank" href="">| </a> 
}

config.simulateStaticDocuments = 1 
config.simulateStaticDocuments_noTypeIfNoTitle = 1 
config.simulateStaticDocuments_addTitle = 36 
config.absRefPrefix = http://www.basic-net.org/

Und dann laß mal das

config.simulateStaticDocuments_addTitle = 36

weg und füge stattdessen

config.simulateStaticDocuments_pEnc = md5

ein.

Meine .htaccess sieht so aus :

RewriteEngine On
# Aufrufe von www.xxx.com/typo3 und www.xxx.com/typo3/*.*
# werden unverändert durchgegeben
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php [L]

Damit sollte es auch bei dir laufen.

Viel Glück !
jenses

dezimal ·

Danke für die Hilfe. Aber nun steht da ne neue Fehlermeldung??
www.basic-net.org

wo liegt den die htaccess und wie ist der name der datei ?

bei mir liegt sie /html/_.htaccess

Jetzt geht gar nix mehr

jenses ·

Bei mir liegt sie im Verzeichnis public_html,
was aber bei dir durchaus nur html heißen kann.
Das Verzeichnis muß auf jedenfall die Unterordner
typo3conf, fileadmin usw. enthalten, dann isses das richtige.
Die Datei muß heißen ".htaccess" mit dem Punkt vorne,
nicht "_.htaccess" oder ähnlich.

Ansonsten schau mal auf die Seite von Meister Jochen Weiland
unter http://typo3.jweiland.net/298.html findest du alles beschrieben
und weiterführende Links zur Problematik.

viele Grüße
Jense

dezimal ·

Läuft gar nix mehr 🙁

Forbidden
You don't have permission to access /typo3 on this server.

--------------------------------------------------------------------------------

Apache/1.3.28 Server at www.basic-net.org Port 80

jenses ·

Was steht denn nun in deiner htaccess ?
Du müßtest schon ein bißchen helfen,
damit wir dein Problem gelöst bekommen.

Außerdem mal bitte Betriebssystem des Servers etc. angeben.

Hast du die original - htaccess gesichert ?
Dann kopiere sie wieder zurück und fang noch mal ganz in Ruhe an.

viele Grüße
jenses

dezimal ·

So hab di htaccess von der dummy installation drauf. Mein Provider ist http://www.pcsector.de weiss net was die für nen server haben hab das profi paket

#RewriteEngine On
#Aufrufe von www.xxx.com/typo3 und www.xxx.com/typo3/*.*
# werden unverändert durchgegeben
#RewriteRule ^typo3$ - [L]
#RewriteRule ^typo3/.*$ - [L]

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule .* /index.php [L]

#####
#
# Example .htaccess file
#
# This file contains a collection of almost everything you will need
# for optimising TYPO3:
#
# - mod_rewrite (used for SimulateStaticDocuments, RealUrl, etc.)
# - PHP optimisation
#
# If you want to use it, you'll need to rename this file to '.htaccess'.
# (To make this work you will need to adjust the 'AllowOverride'
# directive in your Apache configuration file.)
#
# IMPORTANT: You may need to change this file depending on your TYPO3
# installation!
#
# You should change every occurance of TYPO3root/ to the location where you
# have your website in. For example:
# If you have your website located at http://mysite.com/
# then your TYPO3root/ is just empty (remove 'TYPO3root/')
# If you have your website located at http://mysite.com/some/path/
# then your TYPO3root/ is some/path/ (search and replace)
#
# If you have problems with this file, try using the minimal
# mod_rewrite.htaccess which is located in the typo3_src/misc/
# directory of this installation.
#
# You can also use this configuration in your httpd.conf, but you'll have
# to modify some lines, see the comments (search for 'httpd.conf')
#
# Using rewriting in your httpd.conf is much faster, btw.
#
# Questions about this file go to the matching Install mailing list,
# see http://typo3.org/documentation/mailing-lists/
#
####

### Begin: Rewrite stuff ###

# Enable URL rewriting
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]*.html$ index.php

# To assist in debugging rewriting, you could use these lines
# DON'T enable it for production!
# This will only work in httpd.conf, not in .htaccess files
#RewriteLog /var/log/apache/rewrite.log
#RewriteLogLevel 9

# If you use the RealUrl extension, then you'll have to enable the next line.
# You will have to change this path if your TYPO3 installation is located
# in a subdirectory of the website root.
#
# If you place this in httpd.conf, you cannot use this directive in any case!
#RewriteBase /

# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic.php)/ - [L]
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic.php)/ - [L]

# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php
# and stop the rewrite processing
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3$ typo3/index_re.php [L]

# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.

# If you use Windows and SimulateStaticDocuments do not work, try adding a
# slash (/) right before 'index.php' below.

# The example shows how to rewrite only *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# Example: RewriteRule .*.(html|pdf)$ index.php [L]

# For httpd.conf, use this line instead of the next one that has no '#':
# RewriteRule .* /TYPO3root/index.php [L]

# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one:
# RewriteRule .* /index.php [L]

RewriteRule .* index.php [L]

### End: Rewrite stuff ###

### Begin: PHP optimisation ###

# All features below are left to the default if you don't change this.
# Simply remove the comment marks if you want to use some/all of these
# settings

# The PHP developers recommend disabling this feature. Do that.
# It's deprecated and is likely to be unsupported in future versions of PHP.
#php_flag allow_call_time_pass_reference off

# TYPO3 works fine with register_globals turned off.
# This is highly recommended!
#php_flag register_globals off

# PHP may not declare the argv & argc variables (that would contain the GET
# information).
# TYPO3 doesn't need this, so just turn it off.
#php_flag register_argc_argv off

# Magic quotes for runtime-generated data (data from SQL, exec(), etc.)
#php_flag magic_quotes_gpc off

# Order in which PHP registers GET, POST, Cookie and Built-in variables
#php_value variables_order GPCS

### End: PHP optimisation ###

# Add your own rules here
# ...

jenses ·

Hallo !

Habe mal deine .htaccess bei mir ausprobiert,
funktioniert einwandfrei.
( Allerdings hast du meine Vorschläge an der falschen Stelle einkopiert und auskommentiert )

Heißt die datei bei dir wirklich .htaccess

Liegt sie in deinem Root-Verzeichnis ?

Hast du evtl mit Confixx Domain-Umleitungen eingerichtet ?

Läßt dein Provider überhaupt .htaccess zu ? (Nachfragen !)

dezimal ·

die datei liegt im root verzeichnis von typo.

hab die -.htaccess nach deiner anleitung umgeschrieben. aber komme nicht mehr an meine installation ran???

ohhh könnte das problem sein 🙂

Sehr geehrte Damen und Herren, sehr geehrte Kunden,

wie bereits angekündigt werden in der Nacht vom 22.08.04 (ab 22:00 Uhr) - 23.08.2004 (08:00 Uhr)
weitere Server ins neue Rechenzentrum integriert. In dieser Zeit sind einige Server für 3 - 4 Stunden nicht erreichbar.

Betroffen sind alle Server der Power - Familie.

Wir werden um 21:00 Uhr beginnen, Backups aller betroffenen Server zu erstellen.

Wir bedanken uns im Voraus für Ihr Verständnis.

dezimal ·

OK dann hab ich wohl alles richtig gehabt. es gibt ja 2 htaccess eine im root die andere im typo3/install/ die im root hab ich unbenannt und geändert. aber ich glaube das mein provider noch nicht fertig ist mit seinem serverwechsel.

dezimal ·

Komme nicht auf meinen Server www.basic-net.org hab das dummy paket neu upgeloadet und die 2 htaccess Dateien gelöscht. Aber keine Chance???

c4c ·
dezimal schrieb

Komme nicht auf meinen Server www.basic-net.org hab das dummy paket neu upgeloadet und die 2 htaccess Dateien gelöscht. Aber keine Chance???

Sollte das ein Linux Server sein, hoffe ich ja du hast es als tar.gz upgeloaded und dort entpackt, bzw entsprechende chmod's durchgeführt ..

dezimal ·

das ganze läuft auf dem webhoster pc-sector.de das profi S Paket
hab ja das dummy paket schon am laufen gehabt dann die htaccess geändert und hatte den fehler danach

c4c ·
dezimal schrieb

das ganze läuft auf dem webhoster pc-sector.de das profi S Paket
hab ja das dummy paket schon am laufen gehabt dann die htaccess geändert und hatte den fehler danach

Kenne mich mit .htaccess files nicht wirklich aus, aber bist du sicher das dein momentanes Problem (403 Forbidden) daran liegt, das du deine .htaccess geändert hast ? Kann ja auch sein, das du durch das uploaden einen ganz anderen user für die files "zugewiesen" bekommen hast und der webserver jetzt so keinen access mehr drauf hat ?