How to redirect forum to new url adress?

Started by MESWEB, May 30, 2015, 12:36:43 AM

Previous topic - Next topic

MESWEB

I moved my old forum to new url adress. How to redirect old forum to new url?

Sir Osis of Liver

You can use .htaccess, javascript, or php.  I use this -

index.php



<?php
header
('Location: http://www.newurl.com/forum/');
?>




Place it in the root at the old url.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

I would rather use the htaccess redirect than a header php file like that
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Livaco

I Once Had To Reinstall My Entire Forum. I Used The Same Database Passwords And Usernames As I Had And I Still Had What I Left Off With. The Only things Missing Are My Plugins, So Try What I Did.

a10

2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Steve

Quote from: Livaco on May 30, 2015, 09:51:48 AM
I Once Had To Reinstall My Entire Forum. I Used The Same Database Passwords And Usernames As I Had And I Still Had What I Left Off With. The Only things Missing Are My Plugins, So Try What I Did.

That doesn't really relate to the OP's problem methinks. Also, could you not use capitalized case in your sentences. You were asked not to do that once before. http://www.simplemachines.org/community/index.php?topic=536293.msg3810535#msg3810535
DO NOT pm me for support!

KTN

Quote from: Kindred on May 30, 2015, 08:47:11 AM
I would rather use the htaccess redirect than a header php file like that

How can I use the htaccess ?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

KTN

Already done with this one

QuoteRewriteEngine On

RewriteRule ^(.*)$ http://www.mysitedomainname.com/$1 [L,R=301]

Advertisement: