Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| info:dc2dw [2018/05/25 15:20] – créée radeff | info:dc2dw [2019/02/01 08:04] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== dotclear to dokuwiki ====== | ||
| + | |||
| + | |||
| + | ===== php script for migrating posts ===== | ||
| + | |||
| <code php> | <code php> | ||
| # | # | ||
| Ligne 299: | Ligne 304: | ||
| ?> | ?> | ||
| </ | </ | ||
| + | |||
| + | ===== hack on dw to integrate dotclear categories ===== | ||
| + | edit doku.php and add at the beginning of the file: | ||
| + | <code php> | ||
| + | /* | ||
| + | hack radeff for redirecting old dotclear links | ||
| + | ex.: | ||
| + | http:// | ||
| + | -> | ||
| + | https:// | ||
| + | */ | ||
| + | //echo phpinfo(); exit; | ||
| + | if(preg_match("/ | ||
| + | $url=$_SERVER[' | ||
| + | $url=preg_replace("/ | ||
| + | $url="/ | ||
| + | header(" | ||
| + | exit; | ||
| + | } | ||
| + | </ | ||
| + | <note important> | ||
| + | ===== search engine ===== | ||
| + | |||
| + | add this in your .htaccess | ||
| + | < | ||
| + | RewriteRule ^index.php? | ||