mod_rewrite bei 1und1

Alle Probleme mit der Installation
All problems regarding the installation

Moderatoren: Stefan, Jakob

Re: mod_rewrite bei 1und1

Beitragvon BlackAngel am Mo Sep 22, 2008 8:44 am

Nach einem Wochenende abschalten, heute morgen nochmal rangesetzt. Es lang am fehlenden ^ in der .htaccess.

Nun scheint es zu funktionieren... :)

Nur noch mal zur Klarstellung: ich wollte über die Admin-Oberfläche (nicht Portaleditor) eine Seite bearbeiten, d.h. einen Textabsatz einfügen. Dann wird ja normal der Texteditor in der Seite angezeigt. In meinem Fall wurde die Portalansicht, etwas verkleinert an dieser Stelle angezeigt. Nun ist aber alles schick...

Hier noch mal die angepasste .htaccess:
Code: Alles auswählen
#********************************************************************************************************
#   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
#   (c) 2007-2008 by Kajona, www.kajona.de                                                              *
#       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
#-------------------------------------------------------------------------------------------------------*
#                                                                                                                                                                                                                 *
#         .htaccess                                                                                                                                                                                     *
#   Used to define a few global apache-settings                                                         *
#                                                                                                                                                                                                                *
#-------------------------------------------------------------------------------------------------------*
#        $Id: .htaccess 2075 2008-06-16 11:20:06Z jschroeter $                                                   *
#*******************************************************************************************************/


#if you want mod-rewrite to rewrite urls, turn RewriteEngine on. Enable mod_rewrite in the system-settings, too!
#uncomment the following line to use mod-rewrite

RewriteEngine on
RewriteBase /



# source: page.seo.action.systemid.language
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.(.*)\.([a-zA-Z]*)\.([0-9a-z]*)\.([a-z]*)\.html  index.php?page=$1&action=$3&systemid=$4&language=$5

# source: page.seo.action.systemid
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.(.*)\.([a-zA-Z]*)\.([0-9a-z]*)\.html  index.php?page=$1&action=$3&systemid=$4

# source: page.seo.action
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.(.*)\.([a-zA-Z]*)\.html  index.php?page=$1&action=$3

#source: page.language
RewriteRule ^([0-9a-z\_\-]+)\.([a-z]{2,2})\.html  index.php?page=$1&language=$2

# source: page.seo
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.(.*)\.html  index.php?page=$1

# source: page
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.html  index.php?page=$1


#rewrite news-feeds
#uncomment the following line to use mod-rewrite
RewriteRule ^([0-9a-z\_\-]+)\.rss  xml.php?module=news&action=newsFeed&feedTitle=$1



#The following directives can be used to configure php directly
#Enable them with care and just in case of problems

#php_value post_max_size 16M
#php_value upload_max_filesize 16M
#php_value memory_limit 12M

#If your webserver attaches the phpsessid to links generated by the system, uncomment the following directive
#php_value session.use_trans_sid 0


#Uncomment these lines to activate gzip compression for all output including js, css and xml (recommended!)
#please note that there's no need for enabling gzip-compression in Kajona's system settings then

#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
# Netscape 4.x and IE 5.5/6.0 sometimes don't like compressed js and css files
#BrowserMatch ^Mozilla/4 gzip-only-text/html
# Sometimes Opera pretends to be IE with "Mozilla/4.0"
#BrowserMatch \bOpera !gzip-only-text/html
# luckily IE 7 handles gzipped files correctly
#BrowserMatch \bMSIE\s7 !gzip-only-text/html

# für 1und1 php als php5
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

ErrorDocument 404 /error404.php

Benutzeravatar
BlackAngel
Neptuner
Neptuner
 
Beiträge: 92
Registriert: Mo Aug 25, 2008 8:35 am

Re: mod_rewrite bei 1und1

Beitragvon Stefan am Mo Sep 22, 2008 12:15 pm

Also zusammgefasst hast du in den RewriteRules nur die - und _ Zeichen mit einem \ versehen, korrekt?
Bitte keine Supportanfragen per PM!
Bild
Benutzeravatar
Stefan
Site Admin
Site Admin
 
Beiträge: 2897
Registriert: Fr Jul 18, 2003 9:47 pm
Wohnort: Düsseldorf

Re: mod_rewrite bei 1und1

Beitragvon BlackAngel am Mo Sep 22, 2008 3:12 pm

Ja, außerdem noch den Eintrag RewriteBase / sonst gibts 404-Fehler und (unabhängig von diesem Probleme)

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

damit die Seiten unter PHP-5 ausgeführt werden. (Besonderheit von 1und1)
Benutzeravatar
BlackAngel
Neptuner
Neptuner
 
Beiträge: 92
Registriert: Mo Aug 25, 2008 8:35 am

Re: mod_rewrite bei 1und1

Beitragvon Jakob am Do Jun 18, 2009 12:53 pm

Danke für den Hinweis, ich habe die Änderungen mal in das System übernommen. Ich denke dies hat keine Nebenwirkungen bei anderen Servern.
Bild
Benutzeravatar
Jakob
Terraner
Terraner
 
Beiträge: 524
Registriert: Do Sep 15, 2005 8:27 am
Wohnort: Stuttgart / Radolfzell

Vorherige

Zurück zu Installation

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron