ich weiß, dass dieses Thema schon mehrfach behandelt wurde.
Trotzdem habe ich noch eine Frage dazu:
Ich schaffe es einfach nicht den Unterordner aus der URL "herauszubringen".
Die URL sieht momentan so aus (Startkategorie ist schon eine umgeschriebene Kategorie):
www.domain.de/unterordner/Startkategorie
jetzt hätte ich gerne, dass es so angezeigt wird:
www.domain.de/Startkategorie
System
- Contenido 4.8.18
- die htaccess (siehe unten) befindet sich unter
www.domain.de/unterordner/.htaccess
- Das AMR ist installiert mit Pfad zur htaccess
/unterordner/
- Es gibt noch einen zweiten Ordner im Root für das wiki
www.domain.de/wiki/
- Die Weiterleitung von der Root zu Contenido erfolgt über
www.domain.de/index.php
Also nochmal die Frage: Wie bekomme ich den Unterordner aus URL "raus"?
Ich hoffe ich konnte mich verständlich machen.
Danke im voraus
Joe
index.php
Code: Alles auswählen
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location:/unterordner/");
exit;
?>
Code: Alles auswählen
###############################################################################
# Contenido AMR plugin restrictive rewrite rules set
#
# Contains strict rules, each rewrite exclusion must be set manually.
#
# - Exclude requests to directories usage/, contenido/, setup/, cms/upload/
# - Exclude requests to cms/front_content.php
# - Pass thru requests to common ressources (pics, js, css, pdf)
#
###############################################################################
# Enable following lines to run PHP5 on 1und1.de (1and1.com)
# ----------------------------------------------------------
#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php
<IfModule mod_rewrite.c>
# Enable rewrite engine
# ---------------------
RewriteEngine on
# Specify a base URL-path for the rules
# -------------------------------------
RewriteBase /unterordner/cms
# ausnahmen für verzeichnisse der mod_rewrite regel:
# verzeichnisse ausschließen
# das kann beliebig erweitert werden:
RewriteRule ^wiki/.*$ - [L]
# Catch some common exploits in query string to get rid of them
# NOTE: Conditions to prevent protocolls (ftp, http[s]) in query string could be a
# disadvantage in some cases
# --------------------------------------------------------------------------------
RewriteCond %{QUERY_STRING} contenido_path=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} cfg\[path\]=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} _PHPLIB\[libdir\]=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} ftp://.*$ [NC,OR]
RewriteCond %{QUERY_STRING} http[s]*://.*$ [NC]
RewriteRule ^.* - [F,L] # all matching conditions from above will end in nirvana
# Exclude some files and directories from rewriting
# -------------------------------------------------
RewriteRule ^usage/.*$ - [L]
RewriteRule ^contenido/.*$ - [L]
RewriteRule ^setup/.*$ - [L]
RewriteRule ^cms/upload/.*$ - [L]
RewriteRule ^cms/test/.*$ - [L]
RewriteRule ^cms/front_content.php.*$ - [L]
# enable following line if you want to run the plugin test
RewriteRule ^cms/mr_test.php.*$ - [L]
# One RewriteRule to rule them all
# --------------------------------
RewriteRule !\.(js|ico|gif|jpg|jpeg|png|css|pdf)$ front_content.php [NC,QSA,L]
</IfModule>