Start page

Mykola Zharkikh (Kyiv)

Personal site



Smereka has its own mechanism for per-page external redirect. Basically it is designed to support the old URLs while existing site migrating to the Smereka management.

To setup redirection, do two things:

1, fill table redirect, containing the old URL, new URL and response code (default 301 – permanent redirect);

2, provide the addition of the old URL with Cmd=Redirect parameter, for example, using mod_rewrite:

RewriteRule ^olddir/(.*)$ index.php?Cmd=Redirect [L,QSA]

As the result of this rewrite all requests for documents from the directory olddir directed to Smereka, which performs this external redirection (the client receive the new URL, and it may ask if you want to document it).