octabrain
Member
Hi,
I'm trying to redirect the urls, as they were used by the old forum, to xenforo urls.
The old forum has urls like this for forums for example:
http://forum.website.com/index.php?forum-showtopics-{forum_id}
xenForo urls would look like this:
http://forum.website.com/index.php?forums/{forum_id}/
So, I thought I could just write some rewrite conditions and rules for mod_rewrite and it would work. But it doesn't and not really sure what I'm doing wrong.
I added these lines to the .htaccess in the xenforo directory:
RewriteCond %{QUERY_STRING} ^forum-showtopics-(.*)$ [NC]
RewriteRule index.php$ index.php?forums/%1/ [NC]
But if I enter an old url like:
http://forum.website.com/index.php?forum-showtopics-2
I get this error: Route forum-showtopics-2/ could not be found.
What am I doing wrong here?
I'm trying to redirect the urls, as they were used by the old forum, to xenforo urls.
The old forum has urls like this for forums for example:
http://forum.website.com/index.php?forum-showtopics-{forum_id}
xenForo urls would look like this:
http://forum.website.com/index.php?forums/{forum_id}/
So, I thought I could just write some rewrite conditions and rules for mod_rewrite and it would work. But it doesn't and not really sure what I'm doing wrong.
I added these lines to the .htaccess in the xenforo directory:
RewriteCond %{QUERY_STRING} ^forum-showtopics-(.*)$ [NC]
RewriteRule index.php$ index.php?forums/%1/ [NC]
But if I enter an old url like:
http://forum.website.com/index.php?forum-showtopics-2
I get this error: Route forum-showtopics-2/ could not be found.
What am I doing wrong here?