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
    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: -> ->
    and its only two lines. Add this to your .htaccess

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

    Here are few examples:

  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, 16:08 PM
  2. [WTS] WP Redirect Bot
    By iowadawg in forum Scripts
    Replies: 0
    Last Post: 27 December, 2010, 21:26 PM
  3. Non www to www redirect
    By tetrapak in forum Managing
    Replies: 8
    Last Post: 31 May, 2010, 18:19 PM
  4. redirect redirect and redirect again :(
    By gazzele in forum Proxy List Support Forum
    Replies: 2
    Last Post: 5 January, 2010, 21:47 PM
  5. Non-www. to www. 301 redirect
    By Dr. Stavros in forum Managing
    Replies: 8
    Last Post: 29 July, 2009, 18:51 PM

Tags for this Thread


Posting Permissions

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