Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorPieperLy
    • CommentTimeAug 30th 2008 edited
     
    good morning,

    many hours and "red bulls" later, the installation is moved to new dir /bilder/ see here: bilder

    how can i 301 rewrite in .htaccess on root the old collections, albums and pagination to new dir /bilder/
    example:
    the old address:
    http://www.oldskoolman.de/natur/blumen/?page=7
    http://www.oldskoolman.de/natur/blumen/?plog_page=7
    http://www.oldskoolman.de/natur/blumen ...(without trailing slash)
    http://www.oldskoolman.de/natur/blumen/ ...(with trailing slash)

    http://www.oldskoolman.de/natur ...(without trailing slash)
    http://www.oldskoolman.de/natur/ ...(with trailing slash)


    the new address:
    http://www.oldskoolman.de/bilder/natur/blumen/page/7/
    http://www.oldskoolman.de/bilder/natur/blumen/
    http://www.oldskoolman.de/bilder/natur/
    http://www.oldskoolman.de/bilder/

    for "natur" and "blumen" need a variable - thats many different dirs

    at the time, i use a index.php in root http://www.oldskoolman.de/index.php for 301 forwarding:

    <?
    Header("Status: 301");
    Header("Location: http://www.oldskoolman.de/bilder/");
    exit();
    ?>

    and .htaccess:

    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^.*$ - [S=2]
    RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]


    but this rewrite all urls to http://www.oldskoolman.de/bilder/ and not to the right site.

    thanks for your help.
    wish a nice weekend
    uwe