LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-23-2008, 09:46 AM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 336

Rep: Reputation: 31
Apache RedirectMatch Directive


Last apache one for the day (I hope).

Since we moved, people have some old admin files bookmarked, so I need to take;

http://www.domain.com/adminPage.iws to;

http://www.newdomain.com/adminPage.iws

Note that there are numerous admin pages, so I tried a few way's like this;

RedirectMatch "/admin*.iws" $ http://www.newdomain.com/$1

I am not sure if it's a rewrite rule, or redirect match as I am trying to match admin*, I am still reading but thought I would throw this out due to the wealth of knowledge on the forum.

Thanks.
 
Old 01-24-2008, 04:14 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
You can use this:
Code:
RedirectMatch ^/admin(.*)$ http://www.newdomain.com/$1
 
  


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
Apache - Alias directive Sapient Linux - Software 3 01-24-2006 07:57 AM
apache User directive merchtemeagle Linux - Software 2 03-07-2005 03:42 PM
Apache 'Listen' directive doesn't work robbiemorgan Linux - Software 0 11-22-2004 11:49 AM
Apache Directive sopiaz57 Linux - Security 2 12-09-2003 01:32 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 02:09 PM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration