?
Solved

mod rewrite one site to another

Posted on 2012-08-13
3
Medium Priority
?
387 Views
Last Modified: 2012-08-13
I just cant understand mod rewrite when forwareding to a different site.

How can i forward this page.
http://www.accesswestga.com/profile_profile.php?dea_ID_var=516

To this one.
http://www.webcahoot.com/profile.php?profile=994
0
Comment
Question by:Luey
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 38290206
0
 

Author Comment

by:Luey
ID: 38290293
the variables are dynamic.  I am actually doing it now through the program but wondered if I could do it with mod rewrite.
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 2000 total points
ID: 38290315
Yes, Rewrite can do it for you.

RewriteEngine on
RewriteCond %{QUERY_STRING} dea_ID_var=(.*)
RewriteRule ^/profile_profile\.php http://www.webcahoot.com/profile.php?profile=%1 [R=301,L]

Cheers,
Hades666
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 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