Results 1 to 1 of 1

Thread: 301 redirect all to all

  1. #1
    Hellas's Avatar
    Hellas is offline Very Unusual Member
    Join Date
    Dec 2008
    Location
    Bosnia
    Posts
    1,051
    Thanks
    214
    Thanked 292 Times in 205 Posts

    301 redirect all to all

    I found this nice piece of code that redirect all your old site urls to new site urls.
    Main URL and all URLS bellow it to appropriate URLs on a new domain.

    etc in my case

    Code:
    www.generaltopics.info -> www.topicsplanet.com
    www.generaltopic.info/some-url/ -> www.topicsplanet.com/some-url/
    and its only two lines. Add this to your .htaccess

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newsite.com/$1 [R=301,L]
    So forget doing redirects for all of your urls manually.

    Here are few examples:
    Code:
    http://www.generaltopics.info/what-is-average-daily-temperature-in-european-cities/
    http://www.generaltopics.info/is-david-ortiz-of-the-boston-red-sox-married/
    http://www.generaltopics.info/which-country-has-a-five-sided-flag/
    http://www.generaltopics.info/which-first-lady-was-a-photographer/
    http://www.generaltopics.info/?feed=rss2

  2. Thanked by:

    A12Alex (29 August, 2009)

Similar Threads

  1. [Suggestion] Need a Redirect
    By Sami4u in forum Announcements and Suggestions
    Replies: 8
    Last Post: 11 March, 2011, 17:08 PM
  2. [WTS] WP Redirect Bot
    By iowadawg in forum Scripts
    Replies: 0
    Last Post: 27 December, 2010, 22:26 PM
  3. Non www to www redirect
    By tetrapak in forum Managing
    Replies: 8
    Last Post: 31 May, 2010, 19:19 PM
  4. redirect redirect and redirect again :(
    By gazzele in forum Proxy List Support Forum
    Replies: 2
    Last Post: 5 January, 2010, 22:47 PM
  5. Non-www. to www. 301 redirect
    By Dr. Stavros in forum Managing
    Replies: 8
    Last Post: 29 July, 2009, 19:51 PM

Tags for this Thread

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
  •