TwelvestoneBack End

,htaccess new domain redirect


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Technomancer
 
2010-02-04

I have to redirect an old domain name to a new domain name.

Not difficult and the simple redirect works great.

But, I then want to check for a specific old url and change that on the new domain.

old url: myolddomain.com/directory

new url mynewdomain.com/?p=pageid

no matter what I try I can't get the old url to translate to the new url with a new QS. it translates directly to

mynewdomain.com/directory

Basic .htaccess looks like this:

Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !mynewdomain.com$ [NC]

RewriteRule .*$http://www.mynewdomain.com/$1 [R]

Appending this to file doesn't work.

Redirect /directoryhttp://www.mynewdomain.com/?p=pageid

This is getting urgent now - so any help will earn big wet reach from yours truly

Technomancer
 
2010-02-04

Ok - just thought about it differently.

Rather than handling the directory at the old url, I am handling it at the new url.

Far simpler.

gives self a wet reach around

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneBack End

,htaccess new domain redirect