All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

.htaccess Urgent help needed please

  • # April 11, 2009 at 2:07 pm

    I need to move one wordpress site to another domain.

    Both domains will be pointed to the same nameserver, ie. they are both working on the same folder and have the same root.

    I need a .htaccess file that moves to for example.

    So the only thing that is different is the domain. If somebody clicked a page from an old link on another site to the old link they will be redirected to the new domain but the URL will still be intact.

    Does this make any sence?

    Any help would be much appreciated.

    # April 11, 2009 at 11:26 pm

    Jeff Starr has a pretty comprehensive .htaccess guide: … ss-tricks/

    There is definitely information in there on that.

    # April 12, 2009 at 4:19 pm

    Thanks apostrophe and chris.

    I ended up using


    after pointing the original domain to a new fonder wit the .htaccess mentioned above.

    On a similar note, you could do a screencast about this back end server stuff, like useful tips or something, providing you know what I mean.

    # April 24, 2009 at 3:55 pm

    I found a more comprehensive code.

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^$ [OR]
    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ “$1” [R=301,L]

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed