How to learn who reads my blog?
some mod_rewrite help needed....
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > some mod_rewrite help needed.... 13 March 2003 17:31:43

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

some mod_rewrite help needed....

Jasper Metselaar 13 March 2003 17:31:43
 Hi,

I am currently struggling with mod_rewrite.
What I need to do is the following:

Every URL on the domain mydomain.com should be redirected to:
http://www.some-oth­er-domain.com/some-a­spfile.asp?something­


So basically the whole domain should be redirected to a specific page on a
different server with a different domain name.

Can someone point me in the right direction?

Thanks in advance!

Kind regards,
Jasper



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Andrea Rossignoli 13 March 2003 17:09:15 permanent link ]
 Hi,

instead of using rewrite rules you could use the redirectmatch directive.

So basically you need:

RedirectMatch ^(.*)$ http://some-other-d­omain.com$1


~Andrea


----- Original Message -----
From: "Jasper Metselaar" <jasper@formmailer.­nl>
To: <users@httpd.apache­.org>
Sent: Thursday, March 13, 2003 15:03
Subject: [users@httpd] some mod_rewrite help needed....

Hi,>
I am currently struggling with mod_rewrite.> What I need to do is the following:>
Every URL on the domain mydomain.com should be redirected to:> http://www.some-oth­er-domain.com/some-a­spfile.asp?something­>
So basically the whole domain should be redirected to a specific page on a> different server with a different domain name.>
Can someone point me in the right direction?>
Thanks in advance!>
Kind regards,> Jasper>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jasper Metselaar 13 March 2003 17:21:15 permanent link ]
 Well, this is not exactly what I need, since this will try to redirect:

http://www.mydomain­.com/somepage.html to
http://some-other-d­omain.com/somepage.h­tml
and not to http://www.some-oth­er-domain.com/some-a­spfile.asp?something­

So I don't only need a redirect to a different server (or domain) but also
a redirect to a specific URL, regardless of the requested URL.
If this wasn't the case I would have used a cname in my DNS... ;-)­

-- Jasper

Hi,>
instead of using rewrite rules you could use the redirectmatch> directive.>
So basically you need:>
RedirectMatch ^(.*)$ http://some-other-d­omain.com$1>
~Andrea>
----- Original Message -----> From: "Jasper Metselaar" <jasper@formmailer.­nl>> To: <users@httpd.apache­.org>> Sent: Thursday, March 13, 2003 15:03> Subject: [users@httpd] some mod_rewrite help needed....>
Hi,>>
I am currently struggling with mod_rewrite.>> What I need to do is the following:>>
Every URL on the domain mydomain.com should be redirected to:>> http://www.some-oth­er-domain.com/some-a­spfile.asp?something­>>
So basically the whole domain should be redirected to a specific page>> on a different server with a different domain name.>>
Can someone point me in the right direction?>>
Thanks in advance!>>
Kind regards,>> Jasper>>
-------------------­--------------------­--------------------­---------->> The official User-To-User support forum of the Apache HTTP Server>> Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more>> info.>> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>> For additional commands, e-mail: users-help@httpd.ap­ache.org>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server> Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more> info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org




-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Suthakar % Maharajan 13 March 2003 17:29:54 permanent link ]
 You can try like this...

RewriteRule / http://www.some-dom­ain.com [R]

This will redirect to another domain no matter what the request is.

Good Luck!
Suthakar

-----Original Message-----
From: Jasper Metselaar [mailto:jasper@formmailer.nl]
Sent: Thursday, March 13, 2003 9:21 AM
To: users@httpd.apache.­org
Cc: software@polin.it
Subject: Re: [users@httpd] some mod_rewrite help needed....


Well, this is not exactly what I need, since this will try to redirect:

http://www.mydomain­.com/somepage.html to
http://some-other-d­omain.com/somepage.h­tml
and not to http://www.some-oth­er-domain.com/some-a­spfile.asp?something­

So I don't only need a redirect to a different server (or domain) but also
a redirect to a specific URL, regardless of the requested URL.
If this wasn't the case I would have used a cname in my DNS... ;-)­

-- Jasper

Hi,>
instead of using rewrite rules you could use the redirectmatch> directive.>
So basically you need:>
RedirectMatch ^(.*)$ http://some-other-d­omain.com$1>
~Andrea>
----- Original Message -----> From: "Jasper Metselaar" <jasper@formmailer.­nl>> To: <users@httpd.apache­.org>> Sent: Thursday, March 13, 2003 15:03> Subject: [users@httpd] some mod_rewrite help needed....>
Hi,>>
I am currently struggling with mod_rewrite.>> What I need to do is the following:>>
Every URL on the domain mydomain.com should be redirected to:>> http://www.some-oth­er-domain.com/some-a­spfile.asp?something­>>
So basically the whole domain should be redirected to a specific page>> on a different server with a different domain name.>>
Can someone point me in the right direction?>>
Thanks in advance!>>
Kind regards,>> Jasper>>
-------------------­--------------------­--------------------­---------->> The official User-To-User support forum of the Apache HTTP Server>> Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more>> info.>> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>> For additional commands, e-mail: users-help@httpd.ap­ache.org>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server> Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more> info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org




-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Andrea Rossignoli 13 March 2003 17:31:43 permanent link ]
 Ah,
okay...

RedirectMatch ^.*$ http://some-other-d­omain.com/some-aspfi­le.asp?something

~Andrea

----- Original Message -----
From: "Jasper Metselaar" <jasper@formmailer.­nl>
To: <users@httpd.apache­.org>
Cc: <software@polin.it>­
Sent: Thursday, March 13, 2003 15:21
Subject: Re: [users@httpd] some mod_rewrite help needed....

Well, this is not exactly what I need, since this will try to redirect:>
So I don't only need a redirect to a different server (or domain) but also> a redirect to a specific URL, regardless of the requested URL.> If this wasn't the case I would have used a cname in my DNS... ;-)­>
-- Jasper>
Hi,> >
instead of using rewrite rules you could use the redirectmatch> > directive.> >
So basically you need:> >
RedirectMatch ^(.*)$ http://some-other-d­omain.com$1> >
~Andrea> >
----- Original Message -----> > From: "Jasper Metselaar" <jasper@formmailer.­nl>> > To: <users@httpd.apache­.org>> > Sent: Thursday, March 13, 2003 15:03> > Subject: [users@httpd] some mod_rewrite help needed....> >
Hi,> >>
I am currently struggling with mod_rewrite.> >> What I need to do is the following:> >>
Every URL on the domain mydomain.com should be redirected to:> >> http://www.some-oth­er-domain.com/some-a­spfile.asp?something­> >>
So basically the whole domain should be redirected to a specific page> >> on a different server with a different domain name.> >>
Can someone point me in the right direction?> >>
Thanks in advance!> >>
Kind regards,> >> Jasper> >>
-------------------­--------------------­--------------------­----------> >> The official User-To-User support forum of the Apache HTTP Server> >> Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more> >> info.> >> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> >> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> >> For additional commands, e-mail: users-help@httpd.ap­ache.org> >
-------------------­--------------------­--------------------­----------> > The official User-To-User support forum of the Apache HTTP Server> > Project. See <URL:http://httpd.a­pache.org/userslist.­html> for more> > info.> > To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> > " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> > For additional commands, e-mail: users-help@httpd.ap­ache.org>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > some mod_rewrite help needed.... 13 March 2003 17:31:43

see also:
[OX General] Perl Login
RFEs and Release information
[OX User] Error checking mails
пройди тесты:
Do you know women?
see also:
I dont know wat to say
Light House
My Sister's B'day Wish for Me!!!

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .