+ Antworten
Ergebnis 1 bis 5 von 5

Thema: Seo4SMF & .htaccess anpassen ?

  1. #1
    War schon öfter hier
    Registriert seit
    15.02.2009
    Beiträge
    165
    Bedankte sich
    35
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Standard Seo4SMF & .htaccess anpassen ?

    Hi

    kann einer sich meine .htaccess ansehen und sagen wieso es auf das SMF forum nihct greift ?

    und jetzt alle links auf der seite zum forum überberspringen? 0o

    hp link
    www.seg-way.de
    forum
    www.seg-way.de/forum

    .htaccess

    PHP-Code:
    ##
    # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
    # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    # Joomla! is Free Software
    ##


    #####################################################
    #  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations.  It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that dissallows changing it in
    # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's.  If they work,
    # it has been set by your server administrator and you do not need it set here.
    #
    #####################################################

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


    Options +Indexes
    AddType application
    /x-httpd-php3 .php3
    AddType application
    /x-httpd-php43 .php4
    AddType application
    /x-httpd-php5 .php .php5 



    #
    #  mod_rewrite in use

    RewriteEngine On
    RewriteCond 
    %{HTTP_HOST} ^www. [NC]
    RewriteRule ^(.*)$ http://seg-way.de/$1 [L,R=301]

    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRINGmosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRINGbase64_encode.*(.*) [OR]
    # Block out any script that includes a ********** tag in URL
    RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRINGGLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING_REQUEST(=|[|%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits

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


    #DirectoryIndex index.php
    RewriteEngine On
    RewriteBase 
    /

    ########## Begin - Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteCond 
    %{REQUEST_URI} !^/index.php
    RewriteCond 
    %{REQUEST_URI} (/|.php|.jpg|.mp3|.png|.gif|.html|.htm|.feed|.pdf|.raw|/[^.]*)$  [NC]
    RewriteRule (.*) index.php
    RewriteRule 
    .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #
    ########## End - Joomla! core SEF Section


    RewriteEngine on



    #Some apache servers need Rewritebase.

    #delete # from start of Rewrite base to enable it.

    #If your forum is something like http://www.seg-way.de/forum then modify your 

    #RewriteBase in this way: RewriteBase /forum



    RewriteBase /forum


    #Archive/Sitemaps
    RewriteRule ^sitemaps-([a-zA-Z0-9-]*).html index.php?dummy=1&action=seo4smfsitemaps&sa=$[L]

    RewriteCond %{REQUEST_METHOD} =GET
    RewriteCond 
    %{QUERY_STRING} ^action=(.*)$
    RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%[R=301,L]


    RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%[R=301,L]



    #Tiny Portal Old Url's

    RewriteCond %{QUERY_STRING} ^page=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%[R=301,L]



    #Rewrite Old urls

    RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$[R=301,L]



    RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$[R=301,L]



    #Bad Url's

    RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule ^tpmod.html&(.*)$ /index.php?action=tpmod;dl=item31 [L]





    #New board URL's

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/$ index.php?dummy=2&board=$2.$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9])$ index.php?dummy=2&board=$2.$[L]



    #New topic URL's

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;(.*)$ index.php?dummy=1&topic=$2.$3&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).htmlindex.php?dummy=1&topic=$2.$[L]



    #New profiles URL's

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$[L]

    RewriteRule ^(.*)-u([0-9]*).html index.php?dummy=1&action=profile;u=$[L]


    #New Tinyportal Articles URL's
    RewriteRule ^(.*)-p([0-9]*).html index.php?dummy=1&page=$[L]


    #New action Url's
    RewriteRule ^(.*).html(.*)$ index.php?dummy=1;action=$1;$[L]
    RewriteRule ^(.*).htmlindex.php?dummy=1;action=$[L]

    #Sitemaps
    RewriteRule sitemap.xml sitemaps.php [L]
    RewriteRule urllist.txt urllist.php [L

  2. #2
    Neu an Board
    Registriert seit
    05.01.2009
    Alter
    21
    Beiträge
    11
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Versuch mal den zweiten teil, also

    PHP-Code:
    RewriteEngine on



    #Some apache servers need Rewritebase.

    #delete # from start of Rewrite base to enable it.

    #If your forum is something like http://www.seg-way.de/forum then modify your 

    #RewriteBase in this way: RewriteBase /forum



    RewriteBase /forum


    #Archive/Sitemaps
    RewriteRule ^sitemaps-([a-zA-Z0-9-]*).html index.php?dummy=1&action=seo4smfsitemaps&sa=$[L]

    RewriteCond %{REQUEST_METHOD} =GET
    RewriteCond 
    %{QUERY_STRING} ^action=(.*)$
    RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%[R=301,L]


    RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%[R=301,L]



    #Tiny Portal Old Url's

    RewriteCond %{QUERY_STRING} ^page=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%[R=301,L]



    #Rewrite Old urls

    RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$[R=301,L]



    RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$[R=301,L]



    #Bad Url's

    RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule ^tpmod.html&(.*)$ /index.php?action=tpmod;dl=item31 [L]





    #New board URL's

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/$ index.php?dummy=2&board=$2.$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9])$ index.php?dummy=2&board=$2.$[L]



    #New topic URL's

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;(.*)$ index.php?dummy=1&topic=$2.$3&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).htmlindex.php?dummy=1&topic=$2.$[L]



    #New profiles URL's

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$[L]

    RewriteRule ^(.*)-u([0-9]*).html index.php?dummy=1&action=profile;u=$[L]


    #New Tinyportal Articles URL's
    RewriteRule ^(.*)-p([0-9]*).html index.php?dummy=1&page=$[L]


    #New action Url's
    RewriteRule ^(.*).html(.*)$ index.php?dummy=1;action=$1;$[L]
    RewriteRule ^(.*).htmlindex.php?dummy=1;action=$[L]

    #Sitemaps
    RewriteRule sitemap.xml sitemaps.php [L]
    RewriteRule urllist.txt urllist.php [L
    in eine neue .htacces im verzeichnis forum zu schieben, dann sollte es klappen

  3. #3
    War schon öfter hier
    Registriert seit
    15.02.2009
    Beiträge
    165
    Bedankte sich
    35
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Standard

    500 Internal Server Error

    http://seg-way.de/forum

    mit und ohne dass ich seo4smf anlasse.. muss .htaccess umschreiben dann kommt man auf das forum drauf.

  4. #4
    Neu an Board
    Registriert seit
    05.01.2009
    Alter
    21
    Beiträge
    11
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    das deutet darauf hin das immer noch etwas mit den rewrite-optionen nicht stimmt. Hast du die Datei so aufgespalten wie ichs beschrieben habe? also die J! CoreSEF im root verzeichnis und den anderen teil in einer 2. .htaccess im verzeichnis forum?

    ansonsten versuch mal statt rewritebase /forum das ganze mit rewritebase /forum/

    Aber am besten fragst du mal google nach deinem Hoster + mod_rewrite

  5. #5
    War schon öfter hier
    Registriert seit
    15.02.2009
    Beiträge
    165
    Bedankte sich
    35
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Standard

    Hallo und danke dir für deine Tips ! Das hilf mir sehr!

    also die erste .htaccess liegt im root

    webseiten/seg/

    die zweite .htaccess liegt im /forum

    webseiten/seg/forum

    die seite geht 100% und gut..

    das forum frisst es nicht... das ist die zweite .htaccess ...

    schieb ich sie in das forum verzwichniss kommt error 500

    -----------------------------------------------------
    PHP-Code:
    RewriteEngine on



    #Some apache servers need Rewritebase.

    #delete # from start of Rewrite base to enable it.

    #If your forum is something like http://www.seg-way.de/forum then modify your 

    #RewriteBase in this way: RewriteBase /forum



    RewriteBase /forum/


    #Archive/Sitemaps
    RewriteRule ^sitemaps-([a-zA-Z0-9-]*).html index.php?dummy=1&action=seo4smfsitemaps&sa=$[L]

    RewriteCond %{REQUEST_METHOD} =GET
    RewriteCond 
    %{QUERY_STRING} ^action=(.*)$
    RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%[R=301,L]


    RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%[R=301,L]



    RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%[R=301,L]



    #Tiny Portal Old Url's

    RewriteCond %{QUERY_STRING} ^page=([0-9]*)

    RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%[R=301,L]



    #Rewrite Old urls

    RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$[R=301,L]



    RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$[R=301,L]



    #Bad Url's

    RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$[R=301,L]

    RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$[R=301,L]

    RewriteRule ^tpmod.html&(.*)$ /index.php?action=tpmod;dl=item31 [L]





    #New board URL's

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9]*)/$ index.php?dummy=2&board=$2.$[L]

    RewriteRule ^(.*)-b([0-9]*).([0-9])$ index.php?dummy=2&board=$2.$[L]



    #New topic URL's

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;(.*)$ index.php?dummy=1&topic=$2.$3&$[L]

    RewriteRule ^(.*)-t([0-9]*).([0-9]*).htmlindex.php?dummy=1&topic=$2.$[L]



    #New profiles URL's

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$[L]

    RewriteRule ^(.*)-u([0-9]*).html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$[L]

    RewriteRule ^(.*)-u([0-9]*).html index.php?dummy=1&action=profile;u=$[L]


    #New Tinyportal Articles URL's
    RewriteRule ^(.*)-p([0-9]*).html index.php?dummy=1&page=$[L]


    #New action Url's
    RewriteRule ^(.*).html(.*)$ index.php?dummy=1;action=$1;$[L]
    RewriteRule ^(.*).htmlindex.php?dummy=1;action=$[L]

    #Sitemaps
    RewriteRule sitemap.xml sitemaps.php [L]
    RewriteRule urllist.txt urllist.php [L

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein