LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2010, 08:47 AM   #1
agflem
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
.htaccess to redirect all requests to another URL


Hi gang,

I would like to setup .htaccess to redirect every request to one website regardless of folder/filename combination to another URL.

For example:

www.bar.com
www.bar.com/folder/file.php
www.bar.com/folder/folder2/file.php?id=123

would all redirect to

foo.bar.com
 
Old 04-16-2010, 10:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect http requests angle2009 Linux - Networking 6 12-18-2009 05:08 PM
Is is possible to redirect the requests to another IP which is not on my WLAN? JAY-D Linux - Wireless Networking 4 12-02-2006 01:07 PM
Redirect SMTP Requests ALInux Linux - Networking 2 08-03-2006 07:41 AM
How can I redirect all requests for 1 ip to a different IP? with iptables abefroman Linux - Networking 1 08-31-2005 01:09 PM
Htaccess with a redirect Diode Linux - Networking 0 10-28-2003 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration