Board-Index URL ohne /index.php

Started by Autoteilekauf.com, December 20, 2007, 08:44:36 AM

Previous topic - Next topic

Autoteilekauf.com

Wie bekomme ich im Linktree und dem "Startseite"-Button das "index.php" weg?

Hab nirgends was gefunden, wo ich die Script-URL oder Board-URL einstellen kann.

Hintergrund:
Bei der SEO-Optimierung wird ja empfohlen alle Home-Links auf http://www.domain.de/ laufen zu lassen.

MartinB

erstmal brauchst du in deinem Hauptverzeichniss des Forums eine .htaccess datei in der das stehen sollte:
DirectoryIndex index.php


dann änderst du noch in der QueryString.php folgendes:
// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings;

// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';

in das:
// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings;

// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/';


Und schon kannst du deine Board Adresse so nutzen:
http://www.deinedomain.de/?action=login

Autoteilekauf.com

Cool. Danke Dir!  ;)

Werde das heute abend gleich mal so machen.

In der Datei QueryString.php bin ich nämlich schon drin gewesen.
Hab nur leider das komplette "/index.php" gelöscht und nicht das "/" stehen lassen.
Dann war ich ja schon nahe dran.  8)

Advertisement: