Results 1 to 8 of 8

How to Redirect a Web Page

This is a discussion on How to Redirect a Web Page within the Web & Server Administration forums, part of the Web Designing & Development category; This will help you redirect your old domain to New domain using htaccess redirect method. Create a .htaccess file with ...

  1. #1
    Administrator Array SticKer's Avatar
    Join Date
    May 2007
    Posts
    3,700

    Default How to Redirect a Web Page

    This will help you redirect your old domain to New domain using htaccess redirect method.

    Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.

    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

    Replace 'domain.com' in the above code with your actual domain name.

    Buy / Sell / Trade Products and Services at our Webmaster Marketplace

    61 Ways To Drive Targeted Traffic To Your Website

  2. #2
    Senior Member Array Paulie's Avatar
    Join Date
    Jul 2008
    Posts
    208

    Default Re: How to Redirect a Web Page

    Thanks this is a very useful code.

  3. #3
    Senior Member Array akash's Avatar
    Join Date
    Oct 2008
    Location
    Heaven (Earth)
    Posts
    500

    Default Re: How to Redirect a Web Page

    Sure, There's a few tips on website building
    heres the code for it, place it in a text box or an html box



    <meta HTTP-EQUIV="REFRESH" content="0; url=site name">

  4. #4
    Senior Member Array Rayz.Mario's Avatar
    Join Date
    May 2008
    Posts
    735

    Default Re: How to Redirect a Web Page

    The 301 redirect way is the best. @akash the 'refresh' method does the job but I would say 301 is the way.

  5. #5
    Senior Member Array ddwebguru's Avatar
    Join Date
    Oct 2008
    Posts
    299

    Default Re: How to Redirect a Web Page

    Thank you so much for sharing your redirection rule.Can you suggest me how can i redirect sub domain pages to the new site.

  6. #6
    Administrator Array SticKer's Avatar
    Join Date
    May 2007
    Posts
    3,700

    Default Re: How to Redirect a Web Page

    Quote Originally Posted by ddwebguru View Post
    Thank you so much for sharing your redirection rule.Can you suggest me how can i redirect sub domain pages to the new site.
    The same way as mentioned in the 1st post. Create the .htaccess file in the sub domain and follow the steps.

    Buy / Sell / Trade Products and Services at our Webmaster Marketplace

    61 Ways To Drive Targeted Traffic To Your Website

  7. #7
    Moderator Array orlando's Avatar
    Join Date
    Sep 2008
    Posts
    111

    Default Re: How to Redirect a Web Page

    Thanks admin. Its awesome.
    Some nice tips from your side.

  8. #8
    Administrator Array SticKer's Avatar
    Join Date
    May 2007
    Posts
    3,700

    Default Re: How to Redirect a Web Page

    Quote Originally Posted by orlando View Post
    Thanks admin. Its awesome.
    Some nice tips from your side.
    No Problem.

    SticKer

    Buy / Sell / Trade Products and Services at our Webmaster Marketplace

    61 Ways To Drive Targeted Traffic To Your Website



Similar Threads

  1. Replies: 2
    Last Post: 08-26-2011, 02:29 AM
  2. .htaccess mod_rewrite 301 redirect help please?
    By Renegade in forum Web & Server Administration
    Replies: 0
    Last Post: 01-11-2008, 10:25 PM
  3. Replies: 0
    Last Post: 06-11-2007, 03:23 AM

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
  •  
SEO Forum | Web Hosting Forum | Websites For Sale |