Results 1 to 8 of 8

.htaccess frage

This is a discussion on .htaccess frage within the Deutsch forums, part of the General Discussion category; also in meinem Forum funktioniert alles soweit. Nur habe ich jetzt eine Subdomain erstellt kann ich diese nicht aufrufen. Main ...

  1. #1
    Member
    Real Name
    Christoph
    Join Date
    Jul 2008
    Posts
    32
    Liked
    0 times

    .htaccess frage

    also in meinem Forum funktioniert alles soweit.
    Nur habe ich jetzt eine Subdomain erstellt kann ich diese nicht aufrufen.

    Main Forum befindet sich auf der Hauptdomain und ich habe über cpanel eine Subdomain erstellt

    www.domain.com
    www.blog.domain.com

    Dadurch wurde ein Ordner "Blog" in dem Verzeichniss des Forums erstellt.

    Wenn ich jetzt auf die Subdomain www.blog.domain.com gehe kommt folgender Fehler:



    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6
    Sobald ich die .htaccess aber aus dem Forum nehme geht es.

    Hier mal ein Auszug aus meiner htaccess

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Was soll ich darin ändern damit dies wieder geht

  2. #2
    Senior Member
    Real Name
    Philipp Herbers
    Join Date
    Sep 2005
    Location
    Meppen, Germany
    Posts
    8,436
    Liked
    0 times
    Hey Christoph,

    es gibt zwei Möglichkeiten.

    Entweder du erstellst eine .htaccess Datei im Verzeichnis /blog mit folgendem Inhalt:

    Code:
    RewriteEngine Off
    oder (Möglichkeit 2) du "blockst" das Verzeichnis in der Haupt .htaccess aus dem Forum Root.

    Um dies zu tun, SUCHE nach:

    Code:
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    und ERSETZE sie mit:

    Code:
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|blog)/

  3. #3
    Member
    Real Name
    Christoph
    Join Date
    Jul 2008
    Posts
    32
    Liked
    0 times
    habe ich versucht leider gehen beide Möglichkeiten nicht :-(

    Muss ich irgendwas noch einstellen bei der seo

  4. #4
    Senior Member
    Real Name
    Philipp Herbers
    Join Date
    Sep 2005
    Location
    Meppen, Germany
    Posts
    8,436
    Liked
    0 times
    Mache bitte ein Ticket auf und gewähre mir FTP Zugang.

  5. #5
    Member
    Real Name
    Jack Bauer
    Join Date
    Jun 2007
    Posts
    77
    Liked
    0 times
    Hätte auch eine Frage dazu...

    In der Orginal .htaccess steht doch folgendes drinn...

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    Muß man yourdomain durch die eigene Url ersetzen ?
    Weiterhin ist forums das Unterverzeichnis ?

    Von meiner Hauptdomain (xxx.meinedomain.de) wird ebenfalls per .htaccess (xxx.meinedomain.de/forum) weitergeleitet.

    Hab in ein paar Beiträgen hier festgestellt, das nicht jeder das .htaccess (yourdomain.com/forums) ersetzt hat, manche eben wieder doch

  6. #6
    Member
    Real Name
    Jack Bauer
    Join Date
    Jun 2007
    Posts
    77
    Liked
    0 times
    PUSCH

  7. #7
    Senior Member
    Real Name
    Philipp Herbers
    Join Date
    Sep 2005
    Location
    Meppen, Germany
    Posts
    8,436
    Liked
    0 times
    Hey,

    Ja, du musst yourdomain durch deine URL ersetzen.
    /forums ist das Unterverzeichnis des Forums, richtig.

  8. #8
    Member
    Real Name
    Jack Bauer
    Join Date
    Jun 2007
    Posts
    77
    Liked
    0 times
    Danke Philipp

    Hab mich nur gewundert (nachdem ich das Forum nach meiner Frage durchsucht habe), warum doch "anscheinend" so viele das nicht geändert haben.

Similar Threads

  1. Frage bzgl. htaccess Regeln
    By RolandCP in forum Deutsch
    Replies: 1
    Last Post: 12-17-2008, 05:36 PM
  2. Frage zu htaccess
    By Willy in forum Deutsch
    Replies: 22
    Last Post: 06-14-2008, 08:38 AM
  3. Frage zum copyright
    By MxSoNiC in forum Deutsch
    Replies: 4
    Last Post: 05-02-2008, 09:17 AM
  4. Replies: 8
    Last Post: 12-12-2005, 05:52 PM
  5. [Frage] Domainwechsel?!
    By Doc Great in forum Deutsch
    Replies: 0
    Last Post: 10-24-2005, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •