seltsam..1:1 durch die doku gearbeitet und gegoogelt, leider keine lösung.
1. apache2
- habe das rewrite modul aktiviert, apache hats geladen
2. Rewrite im Virtual Host
im entsprechenden Virtual Host Rewrite reingeschrieben:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/].html$ index.php
3. Im Template Simulate aktiviert
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_noTypeIfNoTitle=1
config.simulateStaticDocuments_addTitle=20
und trotzdem bekomm ich nen 404...sorry wenn ich mehrere postings aufmache, aber ich find den fehler nicht ! 🙁
das ergebniss --> http://www.proluul.net/History.92.0.html
homepage: www.proluul.net
evtl. ist es nötig, in der .htaccess noch folgendes einzustellen:
RewriteBase /typo3
je nachdem ob Typo3 noch in einem Unterordner (der hier typo3 heissen würde) liegt oder nicht.
also erstmal mus das in die .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/].html$ index.php
und es sind eventuell noch andere einstellungen notwendig.
dazu erstmal fragen:
Was für ein system?
-apache1 oder 2
-confixx oder plesk
rootserver?
wo liegt dein typo3 auftritt?
- direkt im html ordner?
danke für die hinweise. hier die infos für euch:
- apache 2.0.52
- suse linux 9.0
- strato rootserver SR
- visas (weder confixx noch plesk)
- der typo3 auftritt liegt direkt im html ordner + domain zeigt darauf
hmm ok.
mod_rewrite läuft 100%tig? kannst du ja mit php.info nachsehen...
dann schreib mal in deine .htaccess einfach nur:
RewriteEngine On
kommt dann beim seiten aufrufen schon der fehler z.b. interner serverfehler?
okidoki, bin jetzt selber was verwirrt...
php.ini
Loaded Modules core prefork http_core mod_so mod_access mod_actions mod_alias mod_auth mod_auth_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl mod_suexec sapi_apache2
rewrite ist nicht dabei, aber
httpd.conf -> loadmodule.conf
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so
und beim starten/restarten kein problem
hab rewrite so aktiviert:
- apache2 per SuSE RPM installiert
- datei /etc/sysconfig/apache2 bearbeitet
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec php4 rewrite"
- anschließend den apache restartet und es kommt kein fehler
???
mod_rewrite läuft 100%tig? kannst du ja mit php.info nachsehen...
dann schreib mal in deine .htaccess einfach nur:
RewriteEngine On
kommt dann beim seiten aufrufen schon der fehler z.b. interner serverfehler?
was passiert das muss ich wissen?
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec php4 rewrite"
müsste passen.
im typo kann man übrigens auch nachgucken was für apache module geladen sind
danke für deine mühe!!
beim aufruf des links kommt ein 404
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
www.proluul.net
Fri Feb 4 16:03:17 2005
Apache/2.0.52 (Linux/SUSE)
und er interpretiert die URL folgendermaßen:
- wobei "history" das directory im template ist
- 92 ist die Seiten ID, die umgewandelt werden soll
na dann ist doch alles prima. dann geht bei dir "mod_rewrite"
stimmt nur ein kleinigkeit an deiner rewrite rule nicht...
stell mal bei typo1 simulate static dok... auf 0
kannst du jetzt normal browsen?
pack dann das in diene .htaccess
#####
#
# 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
# 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
# ...
müsste laufen...
wenn nicht an der rewrite base spielen oder mal
+FollowSymLinks
+SymLinksIfOwnerMatch
probieren...
sorry das ich erst jetzt antworte, in köln war karneval 😉
1) neue .htaccess
-> eingebaut
2) anpassung directory
-> gemacht
<Directory "/*/proluul.net//public_html">
Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
</Directory>
3) simulate auf 0
im template oder im install tool?
- im install tool war/ist es immer ausgeschaltet
- im template selber auf 0/1 gestellt
leider keine auswirkung! 🙁
was könnts noch sein?
in die httpd.conf mus das rein:
<Directory "/srv/www/htdocs/web5/html">
AllowOverride All
Options +SymLinksIFOwnerMatch
PHP_ADMIN_FLAG safe_mode off
PHP_ADMIN_VALUE safe_mode_exec_dir /
</Directory>
links ausschreiben: /srv/www/htdocs/web5/html
genau so schreiben: Options +SymLinksIFOwnerMatch
muss gehen^^
PHP_ADMIN_FLAG safe_mode off
PHP_ADMIN_VALUE safe_mode_exec_dir /
das ist nur dafür das bei mir save mode off ist.
der link ist bei mir ja ausgeschrieben 😉
es sieht so aus:
<Directory "/home/p/proluul.net/public_html">
AllowOverride All
Options +SymLinksIFOwnerMatch
PHP_ADMIN_FLAG safe_mode off
PHP_ADMIN_VALUE safe_mode_exec_dir
</Directory>
aber wie gesagt, leider keine änderung 🙁
ist der server online? kann ich in die shell bzw ftp zugang?
schreib mich kurz icq an dann mach ich dir das.
Weiss zufällig jemand warum bei mir wenn ich ein alternatives PAGE Object für z.B. Druckansicht verwende und als Typeparameter einen Wert übergebe, dieser nicht in meine Links integriert wird? (so in der Form: test.123.5.html) Ich erhalte immer nur Menülinks mit dem Typewert 0 (also in der Form test.123.0.html)