Urls sind case-sensitive?
Verfasst: 17.11.2010 16:55
Hallo!
Ich habe ein Verzeichnis \\domainname\portfolio\ auf meinem Webserver in das ich die Domain "DOMANNAME.COM" erfolgreich mit folgenden Regeln umleite.
Leider sind alle URLs case-sensitive was ich nicht verstehe?
zB.: " \\domainname\portfolio\Test.html" gibt es Server und ich kann die Seite auch mit "www.domainname.com/Test.html" aufrufen.
Gebe ich jedoch "www.domainname.com/test.html" in den Browser ein kommt der 404 Fehler?
Vielleicht kann mir jemand helfen!
Für Lösungsansätze und Denkanstösse wäre dankbar!
#############
### START ###
#############
DirectoryIndex index.php index.html 404.html
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist (e.g. “/blog/hello”)
# webmasterworld.com/apache/3808792.htm
Options -MultiViews
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
###########
### ALL ###
###########
# http://www.example.com forward to example.com
# no-www.org/faq.php?q=class_b
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#############################
### DOMANNAME.COM ###
#############################
# MainDomain
RewriteCond %{HTTP_HOST} ^(www\.)?domainname\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/domainname/portfolio%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
# Rewrite MainDomain
RewriteCond %{HTTP_HOST} ^(www\.)?domainname\.com$ [NC]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule !^domainname/portfolio(/.*)?$ /domainname/portfolio%{REQUEST_URI} [QSA,L]
# Custom Error Page
ErrorDocument 404 http://stare.at/404/404.html
Ich habe ein Verzeichnis \\domainname\portfolio\ auf meinem Webserver in das ich die Domain "DOMANNAME.COM" erfolgreich mit folgenden Regeln umleite.
Leider sind alle URLs case-sensitive was ich nicht verstehe?
zB.: " \\domainname\portfolio\Test.html" gibt es Server und ich kann die Seite auch mit "www.domainname.com/Test.html" aufrufen.
Gebe ich jedoch "www.domainname.com/test.html" in den Browser ein kommt der 404 Fehler?
Vielleicht kann mir jemand helfen!
Für Lösungsansätze und Denkanstösse wäre dankbar!
#############
### START ###
#############
DirectoryIndex index.php index.html 404.html
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist (e.g. “/blog/hello”)
# webmasterworld.com/apache/3808792.htm
Options -MultiViews
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
###########
### ALL ###
###########
# http://www.example.com forward to example.com
# no-www.org/faq.php?q=class_b
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#############################
### DOMANNAME.COM ###
#############################
# MainDomain
RewriteCond %{HTTP_HOST} ^(www\.)?domainname\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/domainname/portfolio%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
# Rewrite MainDomain
RewriteCond %{HTTP_HOST} ^(www\.)?domainname\.com$ [NC]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule !^domainname/portfolio(/.*)?$ /domainname/portfolio%{REQUEST_URI} [QSA,L]
# Custom Error Page
ErrorDocument 404 http://stare.at/404/404.html