redirects on Apache 1.3.3

redirects on Apache 1.3.3

Post by Alex Brow » Sat, 20 Mar 1999 04:00:00



Yo.

I've got a re-direct set up in my srm.conf that
works fine going from a directory called /status/
to an enormously long URL, generated by another
application.

This is fine under this server name, however I
have a problem.  This server has 2 VHosts, both of
which also need to have this re-direct work for
them.  I have put the same entry from the srm.conf
into the VHosts entries of httpd.conf and it
doesn't work.  Either of them.

Am I just being thick or is something wrong?

IRIX 6.2 system.

Thanks

A.

--
Alex Brown
Webmaster, Cable Internet

"If Everton were playing at the bottom of the
garden, I'd pull the curtains."
-- Bill Shankly

 
 
 

redirects on Apache 1.3.3

Post by Alex Brow » Sat, 20 Mar 1999 04:00:00



> Am I just being thick or is something wrong?

I was being thick.

Fixed, thanks anyway ;-)

A.

--
Alex Brown
Webmaster, Cable Internet

"If Everton were playing at the bottom of the garden,
I'd pull the curtains."
-- Bill Shankly

 
 
 

1. Apache Redirect/ReWrite for redirecting old->new domains?

Hello:

I'm having some difficulty getting Apache to redirect page requests with
an informative message.  My place of employment is moving from their old
domain name to a new one.  We now have both of these domain names active,
both of which point to the same server.  Although we will be phasing out
the old address very soon, people continue accessing the pages at the old
address, hence the reason for the redirect.

Putting something like <META HTTP-EQUIV="refresh"
"CONTENT=05;URL=http://newdomain.com/newpage"> in all our pages is not
an optimal solution because (a) there are hundreds of pages that would
need to be updated, (b) this solution doesn't display an informative
message before the redirect, and (c) Apache provides a better solution.

I've tried using a RedirectMatch:

RedirectMatch http://olddomain.com/~test/(.*) http://newdomain.com/~test/$1

Unfortunately, any pages access in .../~test do not redirect, but access
from the olddomain.com.

I've also tried a RewriteRule:

RewriteRule http://olddomain.com/~test/.* http://newdomain.com/~test/$1 [R=301L]

This also doesn't seem to work.

Is there a way to redirect visitors to all pages (or some pages in a
given directory or directories) with an informative message that appears
for about 5 seconds from the old access point to the new one?  (Notice I
say "access point" instead of "old page to new page" -- since the pages
are the _same_ as the old and new addresses point to the same server)

Thanks in advance for any assistance.

--------------< LINUX: The choice of a GNU generation. >--------------

2. Reference book, etc.

3. Apache newbie- question on redirect

4. Closing ports by closing services

5. apache user dir cannot redirect to index.html

6. 2.1.129 and Turtle Beach Tropex sound card?

7. Apache suexec + cgi-redirect

8. Installing 3 AHA1542s? Only finds 2...

9. Apache redirect is escaping the ? character

10. Apache Redirect?

11. Apache Redirect

12. apache is redirecting virtualhosts to old addresses

13. Redirect URL Apache