Seite 1 von 1

mit und ohne www und index.thml auf index php weierleiten

Verfasst: 26.05.2007, 12:57
von unima
Hallo,

kann mir einer sagen wie ich das genau machen muss.

meine domain aktuell www. domain.de/index.php zu erreichen.

vor einigen Tagen noch per
www. domain.de/index.hml
www. domain.de
domain.de
domain.de/index.html

zu erreichen. Jetzt soll Sie nur noch unter www. domain.de/index.php erreicbar sein - sprich alle anderen sollen auf Sie verweisen - zumahl die index.html pagerank hat. Könnt Ihr mir ein bsp. mit meinen vorgaben oben machen.

danke im voraus

Verfasst:
von

Verfasst: 26.05.2007, 13:06
von [btk]tobi
www erwingst du mit *klick* mit der index.html kannst du es im Prinziep genau so machen, einfach per mod_rewrite einen 301 zur index.php senden.

krieg ich nicht hin -

Verfasst: 26.05.2007, 13:32
von unima
danke für die Antwort - ich bekomme das trotzdem nicht hin. Folgendes steht bei mir drin. Ich habe die 4 Zeilen Fett markiert reingestellt - aber warscheilich nicht richtig

## Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{HTTP_HOST} !^www\.domain.com\.de$
RewriteRule ^(.*)$ https://www.domaind.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.domain.com/index.html\.de$
RewriteRule ^(.*)$ https://www.domain.de/index.php/$1 [L,R=301]


#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#



Bitte


danke im voraus

Verfasst:
von
Content Erstellung von ABAKUS Internet Marketing
Ihre Vorteile:
  • einzigartige Texte
  • suchmaschinenoptimierte Inhalte
  • eine sinnvolle Content-Strategie
  • Beratung und Umsetzung
Jetzt anfragen: 0511 / 300325-0

Verfasst: 26.05.2007, 13:39
von [btk]tobi
www\.domain.com\.de$
Was ist das :o
Vesuch mal www\.domain\.com$

klappt auch nicht

Verfasst: 26.05.2007, 13:57
von unima
danke tobi.

ich habe jetzt genau das gemacht und es passiert folgenden

https://www.domain.com/index.php/index. ... /index.php
und man sieht nichts.





:cry:

Verfasst: 26.05.2007, 14:02
von [btk]tobi
Mach mal nur

Code: Alles auswählen

RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule ^(.*)$ http://www.domaind.de/$1 [L,R=301] 
um www zu erzwingen, von index.php zu index.html kannst du mit

Code: Alles auswählen

RewriteCond %{REQUEST_FILENAME} /index.html
RewriteRule (.*) /inde.php [L,R=301]
umleiten.