Support » Fixing WordPress » .htaccess Problem

  • Hello

    I am working on a redesign of a Page with a Shopsystem in it (nothing to di with WP). This Shopsystem have already some rewrite rules in the .htaccess.

    Now the Problem:
    Wen I try to use nice permalinks for the WordPress Pages, there is a conflict between the rewrite rule of the WordPress . htaccess Content and the other one from the Shop System.

    Does anyone know how to combine this 2 Snipplets, that the rewrites for the Shop and also the rewrites for WordPress Works together??

    Her the already existing .htacess File with all the SHop Stuff in it:

    ### zur Aktivierung auf on setzen, zur Deaktivierung auf off
    RewriteEngine on
    
    ### Rewrite für die Suchmaschinen-Indexierung
    RewriteCond %{REQUEST_URI} /lshop(.*)\.htm$
    RewriteRule lshop,(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*)\.htm$ /shop/cgi-bin/cosmoshop/lshop.cgi?action=$1&wkid=$2&ls=$3&nc=$4&rubnum=$5&artnum=$6&id=$7&gesamt_zeilen=$8&pid=$9 [L]
    
    ### hiermit wird geschaut, ob eine Datei tatsächlich existiert. Wenn ja wird sie angezeigt und der nächste Rewrite-Befehl nicht ausgeführt.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)$ $1 [L]
    
    ## Rewrite für Quickstart-URLs (erst hinter der Prüfung, ob die Datei expistiert)
    RewriteCond %{REQUEST_URI} ^(.*)\/(.*)\.htm$
    RewriteRule ^(.*)\/(.*)\.htm$ /shop/cgi-bin/cosmoshop/lshop.cgi?action=quickstart&urlpfad=$1&artnum=$2 [L]
    RewriteCond %{REQUEST_URI} ([^\/]*)\.htm$
    RewriteRule ([^\/]*)\.htm$ /shop/cgi-bin/cosmoshop/lshop.cgi?action=quickstart&artnum=$1 [L]
    
    ### Zusatz für URL-Optimieung: die index.htm Seiten auch ohne explizite Angabe von index.htm anzeigen
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*)$ $1 [L]
    RewriteCond %{REQUEST_URI} ^(.*)\/$
    RewriteRule ^(.*)\/$ /shop/cgi-bin/cosmoshop/lshop.cgi?action=quickstart&urlpfad=$1&artnum=index [L]

    and the normal Stuff of a WordPress .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Hope that someone can help me out with that issue, and also hope that someone can understand my crappy english.

    Thank you
    Roman

  • The topic ‘.htaccess Problem’ is closed to new replies.