• Hello there,

    this is my first post here, my english isnt that good so please be merciful πŸ˜€

    ive got a really urgent problem with mod rewrite. My Permalinkstructure looks like this %postname%.htm. My Categorybase is just a “.”, so that there is no category name in the permalink-url.
    My Problem is that some old urls listed in google link to a directory called “aktuelles”.
    The htaccessfile- generated by wordpress:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    It works fine but now i need a tweak which redirects urls from aktuelles/ to the root directory, also the extension has to be changed from html to html:
    #RewriteRule ^(.*)aktuelles([^0-9]*)$ $1$2 [R=301,L]
    #RewriteRule (.*)\.html$ /$1.htm

    The problem is now how to combinate these two things. Im thankful for any advice.Its really urgent, please help me. Im also thankful for resources or a wordpress pro who can fix it quickly.

    Thanks in advance

    Greetings , Daniel

    Danke schonmal!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘mod-rewrite, htaccess & permalinks’ is closed to new replies.