mod rewrite one site to another

Posted on 2012-08-13
Last Modified: 2012-08-13
I just cant understand mod rewrite when forwareding to a different site.

How can i forward this page.

To this one.
Question by:Luey
    LVL 30

    Expert Comment

    by:Brad Howe

    Author Comment

    the variables are dynamic.  I am actually doing it now through the program but wondered if I could do it with mod rewrite.
    LVL 30

    Accepted Solution

    Yes, Rewrite can do it for you.

    RewriteEngine on
    RewriteCond %{QUERY_STRING} dea_ID_var=(.*)
    RewriteRule ^/profile_profile\.php [R=301,L]


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now