SMF Support > SMF 1.1.x Support

Moving to new domain, how to redirect my posts

(1/4) > >>

I'm planing to move my forum to a new domain. After moving all files and database.
How can I redirect all posts from old one to exact url of the new one. Eg redirecting      TO
also categories to it exact category of the new domain.
This is very important to me because many urls of the old domain are being pointed to by many websites and networks.

Note: I use pretty url mod.

Do you still own the old domain?

If not, I suspect that you're buggered.

In the OLD domain's root directory, replace /.htaccess's contents with the following:

--- Code: ---RewriteEngine On
RewriteRule ^(.*)$$1  [R=301,L]
--- End code ---

This would send all visitors over to the new domain. If you want to send only part of the site over to the new domain, it would have to be done a little differently.

There are probably ways in your hosting control panel to do a "redirect" rather than fiddling with .htaccess yourself. As K@ said, if you no longer have access to the old domain, you're outta luck. You can't do anything from the new domain. If you still own the old domain name but not the hosting, you could probably point the old domain to the new as a "parked" domain or something. Then you could redirect visitors coming in on the old domain over to the new domain with something like

--- Code: ---RewriteEngine On
RewriteCond  %{HTTP_HOST}  ^(www\.)?olddomain\.com  [NC]
RewriteRule  ^(.*)$$1  [R=301,L]
--- End code ---
at the top of the new domain's /.htaccess.

Thank you for help,  I own the old domain.
Please Would
RewriteEngine On
RewriteRule ^(.*)$$1  [R=301,L]

take users to exact posts they click from old domain  to new one in case of users that already linked to the page from external sources as I demonstrated above?

As long as the entire path is exactly the same (just a different domain), it will work.


[0] Message Index

[#] Next page

Go to full version