HighDots Forums  

301 code for page to page redirect please?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss 301 code for page to page redirect please? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Big Bill
 
Posts: n/a

Default 301 code for page to page redirect please? - 12-07-2005 , 04:19 PM






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.

Ta!

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
The buffalo have gone

Reply With Quote
  #2  
Old   
John Bokma
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 04:35 PM






Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote:

Quote:
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).

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #3  
Old   
Philip Ronan
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 05:26 PM



"John Bokma" wrote:

Quote:
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/mod_alias.html#redirect>

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/



Reply With Quote
  #4  
Old   
John Bokma
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 05:28 PM



Philip Ronan <invalid (AT) invalid (DOT) invalid> wrote:

Quote:
"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.
I expect more to come :-D

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #5  
Old   
Big Bill
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 06:29 PM



On 7 Dec 2005 21:35:30 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote:

Quote:
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.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
The buffalo have gone


Reply With Quote
  #6  
Old   
Big Bill
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 06:29 PM



On Wed, 07 Dec 2005 22:26:44 GMT, Philip Ronan
<invalid (AT) invalid (DOT) invalid> wrote:

Quote:
"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
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
The buffalo have gone


Reply With Quote
  #7  
Old   
John Bokma
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 06:34 PM



Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote:

Quote:
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 )

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/


Reply With Quote
  #8  
Old   
Big Bill
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 07:22 PM



On Wed, 07 Dec 2005 23:29:07 GMT, Big Bill <kruse (AT) cityscape (DOT) co.uk>
wrote:

Quote:
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
Actually I just tried this and it redirects just to the other domain,
not to the right page.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
The buffalo have gone


Reply With Quote
  #9  
Old   
Big Bill
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-07-2005 , 07:22 PM



On 7 Dec 2005 23:34:12 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote:

Quote:
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 )
Ta John I'll bear it in mind.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
The buffalo have gone


Reply With Quote
  #10  
Old   
Philip Ronan
 
Posts: n/a

Default Re: 301 code for page to page redirect please? - 12-08-2005 , 05:36 AM



"Big Bill" wrote:

Quote:
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.
<hal9000> This can only be attributable to human error... </hal9000>

Did you check your typing? Does the targe page actually exist? Try checking
the redirect at <http://www.wannabrowser.com/> -- what does the "Location"
header say?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.