Hi,
habe gerade meine/eine .htaccess aus einem TYPO CMS umbenannt und somit meine überschrieben. Diese war aber nicht konfiguriert und ich habe nun überhaupt keinen Zugriff mehr auf meine Seiten/Daten über den Browser. Was mache ich nun? Danke.
.htaccess versehentlich mit unkonfigurierter überschrieben
- dben
- Erledigt
-
-
Das CMS nochmal herunterladen und die enthaltene htaccess bei dir hochladen.
Dann sollte es klappen. -
Konfiguration wieder eintragen (das sollte bei TYPO ein Standard sein, den du zB im Paket findest).
Außerdem frage ich mich, wie du das meinst. Wenn die Datei schon existiert und du eine andere in den gleichen Namen umbenennst, sollte da eigentlich eine Fehlermeldung kommen anstatt dass die Datei überschrieben wird... -
Also habe die Datei, die bei TYPO dabei war umbenannt und dann war sie nicht mehr sichtbar und seit dem habe ich keine Zugriff mehr.
You don't have permission to access /typo3/backend.php on this server.
Aber auf gar nichts mehr... nicht einmal die Standard-HTML.
Hier noch der Inhalt:Apache Configuration
Alles anzeigen####### Example .htaccess file for TYPO3 CMS - for use with Apache Webserver## This file includes settings for the following configuration options:## - Compression via TYPO3# - Settings for mod_rewrite (URL-Rewriting)# - PHP optimisation# - Miscellaneous## If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its# not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to# adjust the 'AllowOverride' directive in your Apache configuration file.## IMPORTANT: You may need to change this file depending on your TYPO3 installation!## Lines starting with a # are treated as comment and ignored by the web server.## 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)## You can also use this configuration in your httpd.conf, but then you have to modify some lines,# see the comments (search for 'httpd.conf')## Questions about this file go to the matching Install mailing list, see# http://typo3.org/documentation/mailing-lists/##### ### Begin: Compression via TYPO3 ### # Compressing resource files will save bandwidth and so improve loading speed especially for users# with slower internet connections. TYPO3 can compress the .js and .css files for you.# *) Uncomment the following lines and# *) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' for the Backend# *) Set $TYPO3_CONF_VARS['FE']['compressionLevel'] = '9' together with the TypoScript properties# config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files. #<FilesMatch "\.js\.gzip$"># AddType "text/javascript" .gzip#</FilesMatch>#<FilesMatch "\.css\.gzip$"># AddType "text/css" .gzip#</FilesMatch>#AddEncoding gzip .gzip ### End: Compression via TYPO3 ### ### Begin: Browser caching of ressource files ### # Enable long browser caching for JavaScript and CSS files. # This affects Frontend and Backend and increases performance.# You can also add other file extensions (like gif, png, jpg), if you want them to be longer cached, too. <FilesMatch "\.(js|css)$"> <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 7 days" </IfModule> FileETag MTime Size</FilesMatch> ### End: Browser caching of ressource files ### ### Begin: Settings for mod_rewrite ### # You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri). <IfModule mod_rewrite.c> # Enable URL rewritingRewriteEngine On # Change this path, if your TYPO3 installation is located in a subdirectory of the website root.#RewriteBase /html/ # Rule for versioned static files, configured through:# - $TYPO3_CONF_VARS['BE']['versionNumberInFilename']# - $TYPO3_CONF_VARS['FE']['versionNumberInFilename']# IMPORTANT: This rule has to be the very first RewriteCond in order to work!RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] # Basic security checks# - Restrict access to deleted files in Recycler directories# - Restrict access to TypoScript files in default templates directories# - Restrict access to Private extension directories# For httpd.conf, use these lines instead of the next ones:# RewriteRule ^/TYPO3root/fileadmin/(.*/)?_recycler_/ - [F]# RewriteRule ^/TYPO3root/fileadmin/templates/.*(\.txt|\.ts)$ - [F]# RewriteRule ^/TYPO3root/typo3conf/ext/[^/]+/Resources/Private/ - [F]RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F] # Stop rewrite processing, if we are in the typo3/ directory.# For httpd.conf, use this line instead of the next one:# RewriteRule ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] # If the file/symlink/directory does not exist => Redirect to index.php.# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-l # Main URL rewriting.# For httpd.conf, use this line instead of the next one:# RewriteRule .* /TYPO3root/index.php [L]RewriteRule .* index.php [L] </IfModule> ### End: Settings for mod_rewrite ### ### Begin: PHP optimisation ### # If you do not change the following settings, the default values will be used. # TYPO3 works fine with register_globals turned off.# This is highly recommended, if your web server has it turned on.#php_flag register_globals off ### End: PHP optimisation ### ### Begin: Miscellaneous ### # Make sure that directory listings are disabled.#Options -Indexes ### End: Miscellaneous ### # Add your own rules here.# ...
-
Im FTP-Client muss es eine Option geben, versteckte Dateien anzeigen zu lassen.
Diese aktivieren und dann sollte die Datei wieder sichtbar sein.Als Anfänger sollte man sich vielleicht nicht gleich mit dem Klassenprimus beschäftigen.
Ist natürlich Deine Entscheidung, aber meine Meinung. -
Schon, aber die ist aktiv. Bei TotalCommander auf Versteckte Dateien und System-Dateien anzeigen, aber da ist nichts!
Ich wollte mich nicht damit beschäftigen, habe nur "ausversehen" umbenannt.
-
Warum macht man sowas, wenn man sich damit nicht beschäftigt?
Naja, egal.
Hol Dir, wie oben schon einmal angesprochen, Typo3 auf den Rechner und lade die original .htaccess aus dem Paket in den entsprechenden Ordner.
Danach sollte das wieder funktionieren. -
Hab mich gefragt, warum da ein Underscore dran war/ist... Und selbst hast nie aus Fehlern gelernt?!
Aber das ist die selbe Datei, da sie nicht verändert wurde! Standardmäßig heißt diese "_.htaccess" und ich habe den "_" weggemacht, danach ging es nicht mehr!
So, habe es hinbekommen... Und zwar zeigt der TotalCommander (aktuelle Version 64Bit), obwohl aktiviert, keine versteckten Dateien an!!!
-
Das sollte aber auch mit .htaccess funktionieren.
-
Was meinst?
Bei dem TYPO Blank-Paket ist liegt die htaccess als _.htaccess dabei, da nicht jeder die Datei verwenden will. Habe den _ weggemacht, da mein TYPO kein Zugriff auf Bilder bekommt (You don't have permission to access /fileadmin/ ) und ich mal probieren wollte, ob es daran liegt, dass die htaccess nicht richtig eingebunden ist.
Dem war aber nicht so, da sie überhaupt nicht verwendet wurde und im TotalCommander habe ich sie nicht mehr gesehen, nachdem ich sie umbenannt hatte... Mit WinSCP kein Problem. Jetzt bleibt nur noch die Frage über, warum mein TYPO keinn Zugriff auf Bilder hat, obwohl chmod auf 0755 steht.