Domain forwarding using

Posted on 2009-02-18
Last Modified: 2012-05-06
We are tring to forward an old domain using 301 redirect so google can forward all SEO traffic to new server. It works fine if If I type only old domain but I want to forward all old url to new domain root folder. Example: should come to
RewriteEngine On

RewriteCond %{HTTP_HOST}$

RewriteRule ^(.*)$$1 [R=301,L] 

RedirectMatch permanent ^/$

Open in new window

Question by:shahedny
    LVL 7

    Expert Comment

    Try using this?
    Redirect 301 /oldpage.html

    Author Comment

    well there are hundreds so this is not possible thats why I want all users coming to old site comes to new site homepage
    LVL 7

    Expert Comment

    Why can't you use redirect 301 / in the htaccess?
    LVL 7

    Expert Comment

    Also some apache installations require the Options +FollowSymLinks option before all the redirect business for it to work.

    Accepted Solution

    we couldn't find solution from these answers

    Featured Post

    Scale it in WD Gold

    With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

    Join & Write a Comment

    Suggested Solutions

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now