Results 1 to 5 of 5

 

Thread: 302 redirect help, please.

  1. #1
    Affiliate Marketeer

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Manchester
    Posts
    855
    Thanks
    26
    Thanked 15 Times in 13 Posts


    I'm setting up a .htaccess file with a 301 redirect in it.

    Basically, I'm after something like this :-

    www.mysite.co.uk -> www.newsite.co.uk
    www.mysite.co.uk/stuff.html -> www.newsite.co.uk

    I've got one at the mo, but it keeps trying to send the pages to their equiv on the new site. ie www.newsite.co.uk/stuff.html

    Anyone help?

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by monkeyman
    I'm setting up a .htaccess file with a 301 redirect in it.

    Basically, I'm after something like this :-

    www.mysite.co.uk -> www.newsite.co.uk
    www.mysite.co.uk/stuff.html -> www.newsite.co.uk

    I've got one at the mo, but it keeps trying to send the pages to their equiv on the new site. ie www.newsite.co.uk/stuff.html

    Anyone help?

    Dont put the full path in the first part of the redirect it should look like below

    redirect 301 /project2002.htm http://www.hast.org.uk/previous_projects.html
    redirect301 /webform1.htm http://www.hast.org.uk/contactforms/contact1.html
    redirect 301 /donation1.html http://www.hast.org.uk/treks_donations.html
    redirect 301 /donation1.txt http://www.hast.org.uk/
    redirect 301 /hast_news.htm http://www.hast.org.uk/

    This is from a charity site I host and manage as my small contribution to mankind.

  3. #3
    Affiliate Marketeer

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Manchester
    Posts
    855
    Thanks
    26
    Thanked 15 Times in 13 Posts
    Cheers, will give that a try.

    I've got tons of pages on that site though, so was looking for something a bit easier.

    Thanks again.

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    661
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm a bit rusty on mod rewrite, but wouldn't something this work:

    RewriteRule (.*) http://www.new-site.co.uk [R=301]

    You might want to check it first, but if you have modrewrite access, then it is quite easy to do.

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Dec 2005
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    RedirectMatch permanent (.*) http://www.newsite.co.uk$1



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is this a 302?
    By stevenm in forum Affiliate Marketing Lounge
    Replies: 1
    Last Post: 18-03-05, 08:40 PM
  2. Safest way to redirect
    By Bosh123 in forum Programming
    Replies: 1
    Last Post: 29-09-03, 09:54 PM
  3. Can i redirect an "affiliate links" to promote in
    By friedmanlo in forum Commission Junction
    Replies: 0
    Last Post: 11-09-02, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2