Hallo,
ich fummel schon seite längerem am modrewrite rum komme aber noch nicht auf meine Lösung. Bislang habe ich auch noch nichts im Forum gefunden. Also ich habe:
Version: 4.6-23
Bei mir werden bei eingeschalteten modwrite (ansonsten läuft alles) kein css, image, upload angezeigt. OK die ersten beiden könnte ich noch mit einem absoluten Pfad umgehen. wie sieht es aber mit den Bildern im upload-Ordner aus?
Folgendes ist eingestellt:
- cms überall als Zielverzeichnis
- RewriteBase /cms (in htaccess)
- unter Mandanteneinstellungen kein basehref
- folgendes in der config
/* Advanced ModRewrite settings
* ----------------------------
*
* global ModRewrite Settings.
*
* edit by stese - ModRewrite
*/
/* Use advanced mod_rewrites ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use'] = 1;
/* Path to the htaccessfile with trailling slash from domain-root! */
$cfg['mod_rewrite']['rootdir'] = '../../../';
/* Start TreeLocation from Root Tree (set to 1) or get location from first category (set to 0) */
$cfg['mod_rewrite']['startfromroot'] = 0;
/* is multilanguage? ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use_language'] = 1;
/* use language name in url? ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use_language_name'] = 1;
/* is multiclient in only one directory? ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use_client'] = 0;
/* use client name in url? ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use_client_name'] = 1;
/* use lowercase url? ( 1 = yes, 0 = none ) */
$cfg["mod_rewrite"]['use_lowercase_uri'] = 1;
/* file extension for article links */
$cfg["mod_rewrite"]['file_extension'] = '.html';
/* The percentage if the category name have to match with database names. */
/* $cfg["mod_rewrite"]['category_resolve_min_percentage'] = '75'; */
/*
following three settings write urls like this one:
www.domain.de/category1-category2.articlename.html
changes of these settings causes a reset of all aliases
by using following code snippet in a module once:
<?php
cInclude('classes','class.modrewrite.php');
ModRewrite::reset_aliases();
?>
*/
/* use categories as html file part? ( 1 = yes, 0 = none ) */
$cfg["mod_rewrite"]['use_categories_as_html_file'] = 0;
/* seperator for categories */
$cfg["mod_rewrite"]['category_seperator'] = '-';
/* seperator between category and article */
$cfg["mod_rewrite"]['article_seperator'] = '.';
/* word seperator in category names */
$cfg["mod_rewrite"]['category_word_seperator'] = '_';
/* word seperator in article names */
$cfg["mod_rewrite"]['article_word_seperator'] = '-';
/* Security fix */
if ( isset($_REQUEST['cfg']) ) { exit; }
if ( isset($_REQUEST['cfgClient']) ) { exit; }
?>
Weiß jamand, was ich machen muss?
Gruß,
raphael