Durch die Verwendung von Pretty URLs funktionieren mein Anchor-Links nicht.
(ich verwende CMSMS 1.8.2)
Innerhalb z.B. www.domain.eu/unterordner/seite.html möchte ich mit #anker1 verlinken, jedoch wird der Link immer zu
www.domain.eu#anker1 und verlässt somit meine Seite.
Ich habe bereits verschiedene Optionen des Rewriting in der config.php versucht
Code: Select all
$config['url_rewriting'] = mod_rewrite;
$config['url_rewriting'] = internal;
$config['url_rewriting'] = none;
$config['url_rewriting'] = true;
Meine .htaccess sieht so aus:
Code: Select all
# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
# Might be needed in a subdirectory
#RewriteBase /
# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS
# END Rewrite rules
Weiß jemand, wie ich die Domain den Ankern wegbekomme?
Also wie ich meine Links dazu bringe, so auszusehen
Code: Select all
<a href="#anker1">LINK</a>
Code: Select all
<a href="http://www.domain.eu#anker1">LINK</a>
Danke!!
pawi