Direktaufruf des Index ohne index.html in Adresszeile?

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Direktaufruf des Index ohne index.html in Adresszeile?

Post by phalancs »

Ich möchte den Index der Seite gerne ohne Angabe von index.html oder home.html oder so realisieren. So wie ich das sehe ist das immer eine eigene Weiteleitung.

Kann man das irgenwie vermeiden? Irre ich mich? Macht das überhaupt Sinn? Ich meine bei den meisten Seiten steht für den INdex eben immer nur example.com und nicht example.com/index.html oder example.com/index oder example.com/index.php

Danke :)
2008
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by update »

Macht Sinn...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by phalancs »

Geht aber nicht wa? :)
2008
User avatar
top
Posts: 535
Joined: Fri 11. Aug 2006, 15:03
Location: Eutin

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by top »

Gerade mal mit einer aktuellen Version probiert. (Na ja fast - Version 1.6.522)

Mit der richtigen Seitenstruktur geht es:

Home (wird in der Navi nicht angezeigt)
- Home (mit Weiterleitung auf http :// www. example. com)
- Bla
- Blub
- Kontakt
- ...
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by phalancs »

Wow, Du hast recht, da ich seit Jahren Seiten immer in folgendem Stil anlege ist mir das total entgangen:

-Index - ohne Artikel/ Weiterleitung auf home

-MENU_1 - unsichtbar
--Home
[] Artikel
--Leistungen
[] Artikel
--Kontakt
[] Artikel

-MENU_2 - unsichtbar
--Impressum
[] Artikel
--Kontakt
[] Artikel
--AGB
[] Artikel



Ich mache es dann jetzt mal so:

-Index
[] Home Artikel

-MENU_1 - unsichtbar
--Home - Weiterleitung auf "/", ohne Artikel (der liegt jetzt unter Index)
--Leistungen
[] Artikel
--Kontakt
[] Artikel

-MENU_2 - unsichtbar
--Impressum
[] Artikel
--Kontakt
[] Artikel
--AGB
[] Artikel
2008
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by Oliver Georgi »

Ich erkenne keinen Nutzen. Für das Verlinken auf die "Index" kann man z.B. im Template das betreffende Ziel angeben

Code: Select all

<!-- relativ --><a href="./">Home</a>
<!-- absolut --><a href="/">Home</a>
Oder eben einen Replacer über die Seite jagen, der schlicht alle href="index.html" bzw. href="index.php?index" gegen href="./" bzw. href="http://example.com/" tauscht.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by update »

Das funktioniert aber nur, wenn für alle (z.B. Sprach)Zweige einer Struktur dieses "home" immer dasselbe ist. Habe ich, abhängig von der Sprache, unterschiedliche "home"s, dann bekomme ich auch immer als Anhängsel die ID bzw. den Alias...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by Oliver Georgi »

dann macht die Idee des Single-Slash exkl. des Index/home-Alias auch keinen Sinn, da die Sprachinfo ebenfalls notwendig ist
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by update »

Hab noch mal über den Sinn nachgedacht und denke, dass es allenfalls Sinn macht, wenn dabei ein paar Vorteile im Suchmaschinenranking rausspringen. Ansonsten ist das eher Kosmetik...
Und dass es heutzutage aus Suchmaschinensicht wichtig ist, keine "?" im Url zu haben, bezweifle ich, die werden ja immer besser...
Last edited by update on Sat 5. Jan 2013, 13:49, edited 1 time in total.
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by Oliver Georgi »

das ist den Suchmaschinen schon ewig nicht mehr wichtig…
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Direktaufruf des Index ohne index.html in Adresszeile?

Post by update »

sag ich doch ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply