+ Antworten
Ergebnis 1 bis 8 von 8

Thema: Mod_Rewrite und .htaccess lässt sich nicht abschalten

  1. #1
    Kommt häufiger vorbei
    Registriert seit
    10.03.2006
    Beiträge
    258
    Bedankte sich
    36
    Erhielt 2 Danksagungen
    in 2 Beiträgen

    Standard Mod_Rewrite und .htaccess lässt sich nicht abschalten

    Hallo,

    ich habe ein komisches Phänomen:

    Ich habe in der htaccess

    RewriteCond %{HTTP_HOST} ^mysite\.com [NC]
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

    gelöscht, aber irgendwie reagiert der Server nicht darauf. Er behandelt es immer noch so als wenn es drin wäre.

    Woran liegt das?

    Hier meine stinknormale htaccess:

    Code:
    ##
    # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
    # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    # Joomla! is Free Software
    ##
    
    
    #####################################################
    #  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations.  It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that dissallows changing it in
    # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's.  If they work,
    # it has been set by your server administrator and you do not need it set here.
    #
    #####################################################
    
    ##  Can be commented out if causes errors, see notes above.
    # For security reasons, Option followsymlinks cannot be overridden.
    #Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    
    #
    #  mod_rewrite in use
    
    RewriteEngine On
    
    
    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a ********** tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits
    
    #  Uncomment following line if your webserver's URL
    #  is not directly related to physical file paths.
    #  Update Your Joomla! Directory (just / for root)
    
    # RewriteBase /
    
    
    ########## Begin - Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
    RewriteRule (.*) index.php
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #
    ########## End - Joomla! core SEF Section

  2. #2
    a.h.
    Gast

    Standard

    Evt ist die Umleitung im Cache? Was tut ein anderer Browser? Ist evt. zusätzlich eine reguläre Umleitung im Webspace-Verwaltungsinterface eingerichtet?

  3. #3
    Kommt häufiger vorbei
    Registriert seit
    10.03.2006
    Beiträge
    258
    Bedankte sich
    36
    Erhielt 2 Danksagungen
    in 2 Beiträgen

    Standard

    Keine Umleitungen. Nirgends. Andere Browser verhalten sich genauso.
    Es funktioniert auch die SSL nicht mehr. Komm immer wieder auf hhtp raus anstelle https.

  4. #4
    a.h.
    Gast

    Standard

    Also gleich 2 Fehler, vielleicht noch mehr?. Naja, ich klinke mich aus.

  5. #5
    Kommt häufiger vorbei
    Registriert seit
    10.03.2006
    Beiträge
    258
    Bedankte sich
    36
    Erhielt 2 Danksagungen
    in 2 Beiträgen

    Standard

    Zitat Zitat von a.h. Beitrag anzeigen
    Also gleich 2 Fehler, vielleicht noch mehr?. Naja, ich klinke mich aus.
    Was? Wie?

  6. #6
    a.h.
    Gast

    Standard

    Du hast hier mehrere Posts mit irgendwelchen Problemen, Du legst die Fakten nicht alle auf den Tisch. Daher werde ich Dich nicht mehr unterstützen.

  7. #7
    Kommt häufiger vorbei
    Registriert seit
    10.03.2006
    Beiträge
    258
    Bedankte sich
    36
    Erhielt 2 Danksagungen
    in 2 Beiträgen

    Standard

    Aber welche Fakten denn?

  8. #8
    Hat hier eine Zweitwohnung Avatar von X-Bit
    Registriert seit
    08.06.2007
    Beiträge
    1.412
    Bedankte sich
    63
    Erhielt 298 Danksagungen
    in 268 Beiträgen

    Standard

    Ich verstehe a.h. schon. Was soll ich mit einer "stinknormalen" .htaccess und zwei linien code?!

    Wieviele .htaccess´en hast du denn, auch in den Unterverzeichnissen? Fragen über Fragen... aber leider Kristallkugel futsch. Also, bemühe dich und her mit deinen Angaben!
    1. Link zur Seite
    2. Joomla-Version
    3. PHP-Version
    4. MySQL-Version
    5. Welcher Hoster (allenfalls welches Paket)
    6. Welche Module sind im Einsatz
    7. Welche Komponenten sind im Einsatz

    Auch interessant:
    Wie frage ich richtig!?
    Problem gelöst?! Mark it! | FAQ gelesen? | Level-Up auch DU zählst!

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein