![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. |
#3
| |||
| |||
|
|
Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). |
#4
| |||
| |||
|
|
"John Bokma" wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). You don't need to fire up the rewrite engine just to redirect one file. |
#5
| |||
| |||
|
|
Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). |
#6
| |||
| |||
|
|
"John Bokma" wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). You don't need to fire up the rewrite engine just to redirect one file. Just use this instead: Redirect 301 /example.htm http://www.bar.com/example.htm More info: <http://httpd.apache.org/docs/1.3/mod....html#redirect |
#7
| |||
| |||
|
|
On 7 Dec 2005 21:35:30 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). Nah, there's loads. If I have enough examples I'll figure it, I imagine. Me being a technical whizz and all, heh-heh. |
#8
| |||
| |||
|
|
On Wed, 07 Dec 2005 22:26:44 GMT, Philip Ronan invalid (AT) invalid (DOT) invalid> wrote: "John Bokma" wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). You don't need to fire up the rewrite engine just to redirect one file. Just use this instead: Redirect 301 /example.htm http://www.bar.com/example.htm More info: <http://httpd.apache.org/docs/1.3/mod....html#redirect You mean just do that lots of times? It sounds nice and easy, something I'm heartily in favour of. BB |
#9
| |||
| |||
|
|
Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: On 7 Dec 2005 21:35:30 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: as in someone calls up http://www.foo.com/example.htm and I want to redirect to http://www.bar.com/example.htm. I only want to redirect specific pages, not the whole domain. mod_rewrite (yes/no)? RewriteEngine On RewriteRule ^(example\.htm)$ http://www.bar.com/$1 [301,L] Maybe it's easier if you give a list of URL(s). Nah, there's loads. If I have enough examples I'll figure it, I imagine. Me being a technical whizz and all, heh-heh. I do have an email address :-D ( contact at johnbokma dot com ) |
#10
| |||
| |||
|
|
On Wed, 07 Dec 2005 23:29:07 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk wrote: On Wed, 07 Dec 2005 22:26:44 GMT, Philip Ronan invalid (AT) invalid (DOT) invalid> wrote: Redirect 301 /example.htm http://www.bar.com/example.htm More info: <http://httpd.apache.org/docs/1.3/mod....html#redirect You mean just do that lots of times? It sounds nice and easy, something I'm heartily in favour of. Actually I just tried this and it redirects just to the other domain, not to the right page. |
![]() |
| Thread Tools | |
| Display Modes | |
| |