Reply
Pulling my hair out over redirect 301s and httaccess files please help
Old 07-19-2005, 08:32 PM Pulling my hair out over redirect 301s and httaccess files please help
Novice Talker

Posts: 5
have registered a new domain and I would like to have Google completely ignore my old address while indexing the new address.
The new site content has been moved to a subdirectory of the root and my new domain pointde to this via my host.

Is there some code I can add to redirect users to the new site and to ensure Google completely ignores my old Index Page?

I currently have a Meta redirect instead of the .htaccess.

Cheers
AS

Last edited by Andrew_Sam : 07-31-2005 at 05:48 PM.
Andrew_Sam is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-21-2005, 07:08 PM
Novice Talker

Posts: 5
Taps Microphone to check it's working??
Andrew_Sam is offline
Reply With Quote
View Public Profile
 
Old 07-23-2005, 07:12 PM
Novice Talker

Posts: 5
Checks Deodorant??
Am I posting this to the wrong sub-Forum?
Can nobody help or atleast refer me to somewhere that can please?
Andrew_Sam is offline
Reply With Quote
View Public Profile
 
Old 07-23-2005, 09:07 PM
chrishirst's Avatar
Super Moderator

Posts: 15,343
Location: Blackpool. UK
try the HR Technology and Coding forum if Ron Carnell and/or Randy can't figure it out, label it impossible and use a meta refresh
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-24-2005, 05:55 AM
Bompa's Avatar
Extreme Talker

Posts: 173
Location: The Philippine Islands
Do you have this squared away yet?

If not, please try again, but without the slash preceeding index.htm

redirect 301 index.htm http://www.internettreehouse.co.uk/index.htm

(all on one line)

Bompa
__________________
Get a Competitive Edge!
SEO BOOT CAMP >> BLOG

Last edited by Bompa : 07-24-2005 at 06:12 AM.
Bompa is offline
Reply With Quote
View Public Profile Visit Bompa's homepage!
 
Old 07-25-2005, 07:57 PM
Novice Talker

Posts: 5
Thanks for the replies so far folks.

If I'm posting this to the wrong sib-forum is it possible for one of the Mods. to move the thread please?

Bompa
No luck - just a blank page (the blank index) with no error message or anything and definitely no redirect. In fact when I delete the Index completely I just see a list of directories which again suggests the httaccess is not working.
I've since restored the previous Meta Redirect.

As I understand it normally a 301 redirect would redirect to a different server. In this case the redirect is on the old domain which is that of hosting company Force9. It redirects to the new domain which is a different directory on the same server. I imagine this is quite rare for a 301 redirect.
Andrew_Sam is offline
Reply With Quote
View Public Profile
 
Old 07-25-2005, 08:38 PM
chrishirst's Avatar
Super Moderator

Posts: 15,343
Location: Blackpool. UK
Nope, redirects can be to anywhere. different hostname, different server, same hostname, different page even to the same page if you want to strip out tracking codes.

The problem is how you are redirecting. Your .htaccess will have to use the absolute URIs of each page you are redirecting simply because the redirect is from an alias to another alias (different hostname) that is sharing the same HD space. It would not be an issue if they were on virtual hosts using different HD space.

given my limited expertise on htaccess this may be way off but,

redirect 301 www.dannybaker.force9.co.uk/ http://www.internettreehouse.co.uk/

Should send all requests to internettreehouse. If the above doesn't work you will need to get into setting up a RedirectMatch to acheive this.

You will also have to add an exclusion for the /danny/ sub-folder to robots.txt
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-25-2005, 10:21 PM
Bompa's Avatar
Extreme Talker

Posts: 173
Location: The Philippine Islands
I recently decided to move my home page to a sub directory,
here's my htaccess redirect:

Redirect 301 /index.html http://filipina-sweethearts.com/mail...des/index.html

One thing I want to mention is that my browser was caching my
old page and it was very confusing to test cuz it looked like the
redirect was not working.

I had to repeatedly go to another domain, like yahoo or google,
or whatever, then come back to my site in order to see the redirect working.

Bompa
__________________
Get a Competitive Edge!
SEO BOOT CAMP >> BLOG

Last edited by Bompa : 07-25-2005 at 10:24 PM.
Bompa is offline
Reply With Quote
View Public Profile Visit Bompa's homepage!
 
Old 07-31-2005, 05:51 PM
Novice Talker

Posts: 5
All sorted now. - Fault lay with host and incorrect path to sub directory which contained site content.
An extra \ was to blame :-O
Thanks anyway folks.
Andrew_Sam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pulling my hair out over redirect 301s and httaccess files please help
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14769 seconds with 12 queries