+ Antworten
Seite 1 von 2 1 2 LetzteLetzte
Ergebnis 1 bis 10 von 12

Thema: php5 1und1

  1. #1
    Neu an Board
    Registriert seit
    08.10.2008
    Beiträge
    48
    Bedankte sich
    2
    Erhielt 2 Danksagung
    in 1 Beitrag

    Standard php5 1und1

    Hi Leute, ich bekomme mode rewrite einfach nicht zum Laufen, es kommt immer der Error 404 not found. Ich habe bereits die htaccess.txt in .htaccess umbenannt, in der Konfiguration bei SEO alle drei Häkchen auf ja gesetzt sowie folgendes ergänzt:
    AddType application/x-httpd-php5 .php .php3 .php4 .php5
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    Hab ich das in der Datei an die richtige Stelle gesetzt?
    Nun weiss ich nicht mehr weiter.
    Hier mal meine htaccess-Datei:
    ##
    # @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
    ##

    AddType application/x-httpd-php5 .php .php3 .php4 .php5

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php


    ################################################## ###
    # 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.
    Options +FollowSymLinks

    #
    # 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
    Die Installation liegt bei 1und1 in einem Unterordner. Kann es evtl damit zusammenhängen?
    Lg, Doro
    Geändert von doro2000 (26.01.2010 um 15:09 Uhr)

  2. #2
    Hat hier eine Zweitwohnung Avatar von mamboglasi
    Registriert seit
    31.03.2005
    Alter
    47
    Beiträge
    1.276
    Bedankte sich
    172
    Erhielt 258 Danksagungen
    in 239 Beiträgen

    Standard

    Ich glaube nicht das bei 1und1 mod-rewrite funktioniert. Die haben doch Windows Server so viel mir bekannt ist!
    Es grüßt aus dem sonnigen Süden - Horst
    Vieles zu Affiliate Werbepartner, Forum für Probleme rund um - und mit der Schule
    <-- sucht noch nach Beteiligung...

  3. #3
    Neu an Board
    Registriert seit
    08.10.2008
    Beiträge
    48
    Bedankte sich
    2
    Erhielt 2 Danksagung
    in 1 Beitrag

    Standard

    Stimmt das? Weiss da evtl. jmd. Neues? Ich hatte im Forum gelesen, dass das auch bei 1und1 geht.
    Habe grade probiert, die mod rewrite wieder abzuschalten. Die beiden anderen Häkchen in der config bei SEO sind weiter auf ja. Nun bekomme ich folgenden Pfad:
    http://www...de/joomla/index.php/merkmale.html
    Warum wird mir denn die index.php mit eingefügt? Kann ich das irgendwie ändern?

  4. #4
    Hat hier eine Zweitwohnung Avatar von mamboglasi
    Registriert seit
    31.03.2005
    Alter
    47
    Beiträge
    1.276
    Bedankte sich
    172
    Erhielt 258 Danksagungen
    in 239 Beiträgen

    Standard

    Zitat Zitat von doro2000 Beitrag anzeigen
    Stimmt das?
    1und1 fragen dann bist Du wenigstens sicher eine korrekte Antwort erhalten zu haben!
    Es grüßt aus dem sonnigen Süden - Horst
    Vieles zu Affiliate Werbepartner, Forum für Probleme rund um - und mit der Schule
    <-- sucht noch nach Beteiligung...

  5. #5
    Neu an Board Avatar von huschihusch
    Registriert seit
    26.11.2008
    Ort
    Nürnberg
    Beiträge
    20
    Bedankte sich
    1
    Erhielt 4 Danksagungen
    in 4 Beiträgen

    Standard

    Zitat Zitat von mamboglasi Beitrag anzeigen
    Ich glaube nicht das bei 1und1 mod-rewrite funktioniert. Die haben doch Windows Server so viel mir bekannt ist!
    Zum Einen:
    Nein, die Webhosting-Cluster laufen auf Linux-Basis.

    Zum Anderen:
    Auch unter Windows kann mod_rewrite laufen wenn der Apache eingesetzt wird.

    @doro2000
    Warum hast Du die AddType dazu gesetzt?
    Ich denke genau das mag der Apache nicht.

    An sich reicht die mitgelieferte htaccess vollkommen aus. Man kann sie sogar zusammenstutzen auf die für Joomla 1.5 wichtigen Elemente:
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php
    huschi.

  6. #6
    Gute Seele des Boards Avatar von keraM
    Registriert seit
    12.03.2006
    Ort
    Dresden
    Beiträge
    10.587
    Bedankte sich
    152
    Erhielt 2.557 Danksagungen
    in 2.359 Beiträgen
    Gruß keraM
    Joomla-FAQ: --> Klick!
    Support per PN: --> Klick!

  7. #7
    Neu an Board Avatar von huschihusch
    Registriert seit
    26.11.2008
    Ort
    Nürnberg
    Beiträge
    20
    Bedankte sich
    1
    Erhielt 4 Danksagungen
    in 4 Beiträgen

    Standard

    Ach, 1und1 hat immer noch PHP4 am Start? Wird Zeit das die sich auch mal umorientieren...

    Dann sollte es Doro mal mit der richtigen RewriteBase versuchen.
    Da steht aber noch was Kleingedrucktes:
    Die Installation liegt bei 1und1 in einem Unterordner
    Jetzt hängt es natürlich davon ab, wo die .htaccess liegt. Im DocumentRoot oder im Unterverzeichnis?
    Entsprechend ist die RewriteBase bzw. die RewriteRule abzuändern.

    huschi.
    huschi.net - Linux-Server-Admin FAQ

  8. #8
    Neu an Board
    Registriert seit
    08.10.2008
    Beiträge
    48
    Bedankte sich
    2
    Erhielt 2 Danksagung
    in 1 Beitrag

    Standard

    Vielen Dank für Eure Antworten.Ich habe die .htaccess mal wie folgt abgeändert:
    PHP-Code:

    ##
    # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
    # @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
    ##


    AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php


    #####################################################
    #  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.
    #Options +FollowSymLinks

    #
    #  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!
    #
    ## Deny access to extension xml files (uncomment out to activate)
    #<Files ~ "\.xml$">
    #Order allow,deny
    #Deny from all
    #Satisfy all
    #</Files>
    ## End of deny access to extension xml files
    RewriteCond %{QUERY_STRINGmosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRINGbase64_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_STRINGGLOBALS(=|[|%[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 /joomla/


    ########## 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 
    Also AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php hinzugefügt und # RewriteBase /joomla/ (also den Unterordner) hinzugefügt. Im gleichen Unterordner wie die ganze Installation liegt auch die .htaccess
    Bei #Options +FollowSymLinks habe ich die Raute vorne drangehängt. Ist dies auch für RewriteEngine On nötig?
    Bisher hat alles nicht gebracht. Ich bekomme immer noch Error 404 not found...
    Hat noch jmd. ne Idee? Doro

  9. #9
    Neu an Board Avatar von huschihusch
    Registriert seit
    26.11.2008
    Ort
    Nürnberg
    Beiträge
    20
    Bedankte sich
    1
    Erhielt 4 Danksagungen
    in 4 Beiträgen

    Standard

    Zitat Zitat von doro2000 Beitrag anzeigen
    AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php
    Das sollten zwei Zeilen sein. Nicht nur eine.

    # RewriteBase /joomla/
    Das wirkt nur wenn die Raute davor auch weg ist.
    Liegt die .htaccess im joomla-Verzeichnis oder im Webroot?

    huschi.
    huschi.net - Linux-Server-Admin FAQ

  10. #10
    Neu an Board
    Registriert seit
    08.10.2008
    Beiträge
    48
    Bedankte sich
    2
    Erhielt 2 Danksagung
    in 1 Beitrag

    Standard

    Vielen vielen Dank an alle!
    Hatte vergessen die Raute zu entfernen. Nun gehts. Die .htaccess liegt im selben Verzeichnis (joomla/).
    Nochmals thanx, Doro

+ Antworten
Seite 1 von 2 1 2 LetzteLetzte

Lesezeichen

Berechtigungen

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