I am about to move my site from http to https, will that have any effect on these redirection scripts? Thanks.
No, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).So I have to put the redirect files in the old folder where vBulletin is located, in my case it's forum_old
Thank you MikeNo, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).
You don't need to keep the old files for the redirects.
After test, it don't work.No, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).
You don't need to keep the old files for the redirects.
I use Full Friendly URLs and IDs have been maintainedThe URL you're trying to redirect from isn't a "standard" URL, which is what these redirects cover. If you previously used something that rewrote the URLs, you would need to add rewrites to either turn those to the "standard" URLs or, if IDs have been maintained, to redirect them to the standard XF URLs.
Example:
Old url -> http://www.my_domaine.com/forums/thread27.html
New url -> http://www.my_domaine.com/forums/index.php?threads/les-crédits.27/
RewriteEngine On
RewriteRule ^thread([0-9]+)\.html$ /forums/index.php?threads/$1/ [R=301,L]
It work, thank you JakeAdd these rules to the top of the .htaccess file in your /forums directory:
Code:RewriteEngine On RewriteRule ^thread([0-9]+)\.html$ /forums/index.php?threads/$1/ [R=301,L]
$target = XenForo_Link::buildPublicLink('canonical:threads', $data, $extraParams);
We use essential cookies to make this site work, and optional cookies to enhance your experience.