M.Zharkikh's personal site logo
Mail to site
Print version
News (RSS)
Smereka / For administrators / Redirecting

Redirecting

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 managemen.

To setup redirection, do two things:

1, fill table redirectcontaining 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).

Previous article | List of articles | Next article

© 1978 – 2012 N.I.Zharkikh

Reprinting of articles from site are encouraged while
reference (hyperlink) to my site is provided

Site powered by

Load count : 337

Modified : 11.10.2010

If you look up the type error
on this page, please select it
by mouse and press Ctrl+Enter.