PDA

View Full Version : url rewrite from xf


Afrika
08-27-2014, 10:15 AM
I try to change back from xenforo to vb.
Now I have to rewrite the urls like:
domain.com/threads/text-text-text.11705/ to forum.php?threadid=11705
domain.com/threads/text-bla-text.11707/ to forum.php?threadid=11707
How to generate the rule in the .htaccess?

AusPhotography
08-27-2014, 11:45 AM
I'd do an edit in the database, using REPLACE

Black Snow
08-27-2014, 11:49 AM
I'd do an edit in the database, using REPLACE

Same. I'd do a database backup then attempt a REPLACE function but i'd assume it would require a few lines to grab the url, strip our the thread ID number, then replace threads/text-text-text. with forum.php?threadid=. You can always restore your backup if it doesn't work.

cellarius
08-27-2014, 12:44 PM
That won't help you for external incoming links.