Forums

URL change of Blog (same host, same database) (5 posts)

  1. Mori3335
    Member
    Posted 2 years ago #

    Hi,

    I'm going to be moving my blog from http://mac-abc.moridin.pl to http://www.makoweabc.pl today. It will be just a domain name change - the same provider is hosting both at the moment (and will continue to do so). The database will remain in the same place.

    Note: http://www.makoweabc.pl is currently a simple redirect to mac-abc.moridin.pl.

    I think I know how to do this, however I still want my old links to be redirected to the new blog.

    Example: someone tries to go to: http://mac-abc.moridin.pl/2010/02/obsluga-dock-screencast/

    I want it to redirect to: http://www.makoweabc.pl/2010/02/obsluga-dock-screencast/

    How would I go about doing this? I'm assuming .htaccess is the way to go.

  2. Mori3335
    Member
    Posted 2 years ago #

    PS. Both domains will be linked to the same folder after the change.

  3. renato_s
    Member
    Posted 2 years ago #

    Don't know if it helps, but you can search and replace your database to change the old url to the new:
    http://wordpress.org/extend/plugins/search-and-replace/

  4. Samuel B
    moderator
    Posted 2 years ago #

  5. Mori3335
    Member
    Posted 2 years ago #

    OK I did it with this finally - took a few hours to find it bah!

    # 301 redirect
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mac-abc.moridin.pl$
    RewriteRule ^(.*)$ http://www.makoweabc.pl/$1 [R=301,L]

    Hope it will work on search engines properly.

Topic Closed

This topic has been closed to new replies.

About this Topic