.htaccess - 301 redirect phpbb2 to xenforo -


could please me .htaccess settings? need redirect old forum urls (phpbb2) new xenforo urls.

example old:

 www.myforum.de/ftopic7469.html 

new:

 www.myforum.de/threads/werbelinks-hier-im-forum.7469/ 

same forums:

old:

 www.myforum.de/forum61.html 

new:

 www.myforum.de/forums/wuensche-und-feedback.61/ 

thanks help!

try following:

rewriteengine on  rewriterule ^ftopic([0-9]+)\.html$  /threads/$1 [r,l] rewriterule ^forum([0-9]+)\.html$  /forums/$1 [r,l] 

note doesn't take care of slug, but, per https://stackoverflow.com/questions/34473844/nginx-redirect-rewrite-vbulletin-urls-with-slug-to-xenforo-slug-optional/38166902#38166902, slug part isn't mandatory, so, don't have worry it.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -