Re: [users@httpd] Yet another Redirect/ RedirectMatch question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have another Redirect in our configuration:

RedirectMatch /store/application/(.*) http://www.esalton.com/control/main/

As you might know, this works like anything going to http://www.esalton.com/store/application/ would get redirected to http://www.esalton.com/control/main/
(Note the / after application.  So if you have http://www.esalton.com/store/application/blah would get redirected to http://www.esalton.com/control/main/


I tried to emulate this by....

<VirtualHost *:80>
ServerName maxim-toastmaster.com
RedirectMatch /store/(.*) http://www.esalton.com/
</VirtualHost>

Unfortunately, this didn't work as well.

I think I am getting close to my goal, but can't nail it yet.

Please help.

Thanks




Mukarram Syed <muksyed@xxxxxxxxx> wrote:
Thisis what I tried and it still didn't work.  I just thought I would share my ideas with you.

Since http://maxim-toastmaster.com is redirecting to http://www.esalton.com/store/application (404 error page), I tried to modify my below redirect.

<VirtualHost *:80>
ServerName maxim-toastmaster.com
Redirect /store/application http://www.esalton.com/
</VirtualHost>

Mukarram Syed <muksyed@xxxxxxxxx> wrote:
Hi.
Thanks for replying Joshua.  Sorry for delay in responding back.

Here is my redirect:

<VirtualHost *:80>
ServerName maxim-toastmaster.com
Redirect / http://www.esalton.com/
</VirtualHost>

What is happening is that when I connect to http://maxim-toastmaster.com
I am being redirected to a 404 error p age http://www.esalton.com/store/application. 
This is an old page we had in our httpd.conf file and we removed it over a year ago.
The IP address for maxim-toastmaster.com is owned by us.
I don't know what the problem might be and why is it redirecting to the other location. 

BTW, the NameVirtualHost is setup:
NameVirtualHost *:80

Appreciate you help.

Thanks


Joshua Slive <joshua@xxxxxxxx> wrote:
On 1/25/06, Mukarram Sy ed wrote:
> All,
> I have been researching on this for the past 2 hours and haven't found a
> solution.
> Here is my issue.
> I want to redirect http://maxim-toastmaster.com to http://www.esalton.com
> This is what I have tried so far:
>
> 1.
>
> ServerName maxim-toastmaster.com
> RedirectMatch permanent ^/$ http://www.esalton.com/
>

>
> 2.
>
> ServerName maxim-toastmaster.com
> Redirect permanent / http://www.esalton.com/
>

>
> 3.
> Redirect /maxim-toastmaster.com http://www.esalton.com/
>
> None of these options worked.

Not a good problem description. What exactly happened when you tried
them? Either of the first two examples should work, although they
affect a different set of URLs. The last one is wrong.

One thing to look at: Make sure you have a NameVirtualHost *:80 directive.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




Mukarram Syed
muksyed@xxxxxxxxx

Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.



Mukarram Syed
muksyed@xxxxxxxxx

Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.



Mukarram Syed
muksyed@xxxxxxxxx


Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux