MyBB Community Forums

Full Version: New Host (Problem solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all.
Can some one please tell me if exist a plugin or someting to redirect my URL to other Host URL?

Hi have a ney host and domain, and now I wont the people wen visit my hold forum host, go redirect to the new forum.


this is my hold host forum

http://portugal-forum.alojamentogratis.com

This is my new host forum

www.pt-forum.com

thanks
If your old host allowed you to use .htaccess files you could do this.

1. Create a new file in Notepad and save it as ".htaccess" with the quotes. (The quotes will force Windows to save it with the weird file name)

2. Add the following code to the file:

redirect 301 / http://www.pt-forum.com
redirect 301 /index.htm http://www.pt-forum.com
redirect 301 /index.php http://www.pt-forum.com

3. Upload the .htaccess to the public_html or main www folder for the old subdomain for portugal-forum.alojamentogratis.com. If in doubt, just put the file in the same folder where MyBB currently is.

This should redirect all requests for portugal-forum.alojamentogratis.com to the new URL.

Hope it helps,
BMR777
BMR777 Wrote:If your old host allowed you to use .htaccess files you could do this.

1. Create a new file in Notepad and save it as ".htaccess" with the quotes. (The quotes will force Windows to save it with the weird file name)

2. Add the following code to the file:

redirect 301 / http://www.pt-forum.com
redirect 301 /index.htm http://www.pt-forum.com
redirect 301 /index.php http://www.pt-forum.com

3. Upload the .htaccess to the public_html or main www folder for the old subdomain for portugal-forum.alojamentogratis.com. If in doubt, just put the file in the same folder where MyBB currently is.

This should redirect all requests for portugal-forum.alojamentogratis.com to the new URL.

Hope it helps,
BMR777

thanks my friend, the problem is solved, But now I canot enter in a others directories of hold host? do you have a solution to this?
Try removing the line:

redirect 301 / http://www.pt-forum.com

This should make it so anyone who tries to pull up the forum's index page or site index page is redirected, but you should still be able to access other directories on the site.

BMR777
BMR777 Wrote:Try removing the line:

redirect 301 / http://www.pt-forum.com

This should make it so anyone who tries to pull up the forum's index page or site index page is redirected, but you should still be able to access other directories on the site.

BMR777

thanks BMR777, I remove that link and now is work fine. I can able to access to the others directories on the host.
Problem solved
thanks