It is very possible
But you should think well about it before you do so, the mixed mod rewrite in virtual folders mode can really be interesting too without having to moderate topic title too much.
forum-url/topicxx.html
Anyway, whatever you decide, you'll have to prepare yourself a bit, because we want the redirecting to start suddenly and to stay the same for some time for the migration process to work smoothly.
The principle is easy, we only need to make sure that the old rewritten urls still hit the proper script (eg topicxx.htlm =>viewtopic.php?t=xx) in order to let the zero duplicate do its job :
- Code: Select all
topicxx.html => (mod_rewrite) viewtopic.php?t=xx => (zero dupe http 301) topic-title-txx.html (or forum-url/topicxx.html or ...) => (mod_rewrite) viewtopic.php?t=xx : page load.
This way, you'll send a unique http 301 header to redirect these, which is the proper way to do so.
To do it, you just need to add the forum and topic rewriterules from the simple mod, eg the one after :
- Code: Select all
# FORUM
and the one after :
- Code: Select all
# TOPIC WITHOUT FORUM ID & DELIM
in the simple .htaccess and add them after :
- Code: Select all
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
in the new .htaccess.
If you as well changed your profile urls, you'll need to keep the simple version of the profile urls too.
Just use the rewriterules that where up and running in simple mod, the safe implementation is :
- Code: Select all
1) turn zero dupe off;
2) add the new rewriterules;
3) check if the simple url do work;
4)if so, turn the zero duplicate back on and voilà.
++