Business Advice and Help Forum for Businesses or Starting a Company in the UK - A1 Business Forums
corner image corner image
Member Box




corner image corner image
Our Advertisers

corner image corner image
Register FAQ Members List Today's Posts Search Today's Posts Mark Forums Read
A1 Business Blog Home
corner image corner image
A1businessforums.co.uk - The UK's Friendliest Online Business Community
Go Back   Business Forum UK - Advice Help and Questions - A1 Forums > Internet Marketing - For Online Marketing and Sales > SEO Advice and Help for Search Engine Optimisation
Reload this Page

301 re-direct

SEO Help and Advice Forum for your Search Engine Optimisation questions. SEO Made Simple

Reply
Page 1 of 3 1 23 >
corner image corner image
 
LinkBack Thread Tools Display Modes

corner image corner image
  #1 (permalink)  
Old 17-03-2008, 23:50
PI Guy's Avatar
PI Guy PI Guy is offline
Blog Entry: PI?s descend on Birminham - The PI?s Diary repo...
I Live on A1!
 
Join Date: Mar 2008
Location: Surrey
Posts: 501
Thanks: 44
Thanked 65 Times in 55 Posts
Default 301 re-direct

Quote:
301 Redirect Using htaccess

Using htaccess to accomplish the 301 redirect is highly suggested due to it being fairly convenient to manage, rather than setting redirects on each individual page, you can simply add the redirect code to the .htaccess file.
Here is how to do it:
  1. Create a file on the root directory of your website, name it ".htaccess".
  2. Open the .htaccess file using notepad or what ever text editor that you prefer.
  3. Add this into the .htaccess file, save it and then upload it to your web server:
Redirect 301 /old/old.html http://www.you.com/new.html
Can someone translate this into english cause i appear to have canolisation issues on my index page
__________________
Private Investigator & Process Server | e-legal | GATHERING | The PI's Diary | GPS Trackers | Private Investigator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
corner image corner image
Sponsored Links

Register to remove these ads
PI Guy
View Public Profile
Send a private message to PI Guy
Visit PI Guy's homepage!
Find all posts by PI Guy
corner image corner image
  #2 (permalink)  
Old 18-03-2008, 00:36
UKSBD UKSBD is offline
A1 is my Second Home!
 
Join Date: Mar 2008
Location: Warwickshire
Posts: 354
Thanks: 2
Thanked 65 Times in 52 Posts
I won't translate it for you, but what I will say is don't even attempt it
if you don't know what you are doing.
Too many times I see, "just create an .htaccess file and upload it"
You should never upload a .htacces file without knowing what you are doing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
corner image corner image
The Following User Says Thank You to UKSBD For This Useful Post:
Alvin (18-03-2008)
UKSBD
View Public Profile
Send a private message to UKSBD
Visit UKSBD's homepage!
Find all posts by UKSBD
corner image corner image
  #3 (permalink)  
Old 18-03-2008, 10:13
batface's Avatar
batface batface is offline
Blog Entry: WHOLE OF MARKET! what does it mean - WATCH OUT
A1 is my Second Home!
 
Join Date: Mar 2008
Posts: 167
Thanks: 51
Thanked 32 Times in 27 Posts
The redirect you show is for page redirect. You mention canonical issues where both non www and www urls display the same page essentially causing duplication.

Your htaccess should contain:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Replace domain.com and www.newdomain.com with your actual domain name.

Test it, if it does not work just delete the htaccess file. If it is a setup where the htaccess seems to disappear upload an empty file.

This is a good resource:
http://www.webconfs.com/how-to-redirect-a-webpage.php

Mick
__________________
Website Once-Over

find me in facebook
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
batface
View Public Profile
Send a private message to batface
Visit batface's homepage!
Find all posts by batface
corner image corner image
  #4 (permalink)  
Old 18-03-2008, 10:16
PI Guy's Avatar
PI Guy PI Guy is offline
Blog Entry: PI?s descend on Birminham - The PI?s Diary repo...
I Live on A1!
 
Join Date: Mar 2008
Location: Surrey
Posts: 501
Thanks: 44
Thanked 65 Times in 55 Posts
yes i have the following urls that I want all to be redirected to the 1st one on the list.

http://www.salgadoinvestigations.com/
http://salgadoinvestigations.com/
http://www.salgadoinvestigations.com/Index.html
http://salgadoinvestigations.com/Index.html
http://www.salgadoinvestigations.com/index.html
http://salgadoinvestigations.com/index.html
__________________
Private Investigator & Process Server | e-legal | GATHERING | The PI's Diary | GPS Trackers | Private Investigator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
PI Guy
View Public Profile
Send a private message to PI Guy
Visit PI Guy's homepage!
Find all posts by PI Guy
corner image corner image
  #5 (permalink)  
Old 18-03-2008, 11:37
UKSBD UKSBD is offline
A1 is my Second Home!
 
Join Date: Mar 2008
Location: Warwickshire
Posts: 354
Thanks: 2
Thanked 65 Times in 52 Posts
Do not do this if you don't know what you are doing.
Just because you read something on a forum it doesn't make it right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
UKSBD
View Public Profile
Send a private message to UKSBD
Visit UKSBD's homepage!
Find all posts by UKSBD
corner image corner image
  #6 (permalink)  
Old 18-03-2008, 11:55
batface's Avatar
batface batface is offline
Blog Entry: WHOLE OF MARKET! what does it mean - WATCH OUT
A1 is my Second Home!
 
Join Date: Mar 2008
Posts: 167
Thanks: 51
Thanked 32 Times in 27 Posts
Quote:
Originally Posted by UKSBD View Post
Do not do this if you don't know what you are doing.
Just because you read something on a forum it doesn't make it right.
I am not telling the poster to do it, rather just passing on some information and a link to a useful resource.

Apparently, the requirement is not for the www issue, so the code may not be required.

However, I do know someone who was charged £50 by the designer to do that so I would rather post and let them make their mind up.

Mick
__________________
Website Once-Over

find me in facebook
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
batface
View Public Profile
Send a private message to batface
Visit batface's homepage!
Find all posts by batface
corner image corner image
  #7 (permalink)  
Old 18-03-2008, 12:17
PI Guy's Avatar
PI Guy PI Guy is offline
Blog Entry: PI?s descend on Birminham - The PI?s Diary repo...
I Live on A1!
 
Join Date: Mar 2008
Location: Surrey
Posts: 501
Thanks: 44
Thanked 65 Times in 55 Posts
I'm trying to learn here but it didn't work
__________________
Private Investigator & Process Server | e-legal | GATHERING | The PI's Diary | GPS Trackers | Private Investigator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
PI Guy
View Public Profile
Send a private message to PI Guy
Visit PI Guy's homepage!
Find all posts by PI Guy
corner image corner image
  #8 (permalink)  
Old 18-03-2008, 12:25
Spiderden's Avatar
Spiderden Spiderden is offline
A1 is my Second Home!
 
Join Date: Mar 2008
Location: Kenley, Surrey, UK
Posts: 202
Thanks: 9
Thanked 77 Times in 54 Posts
.htaccess is a Linux file but your site is on a Microsoft-IIS/6.0 server so .htaccess won't work for you. I know nothing about Windows servers so I'm afraid I can't help, though Phil (OpenMind) will be able to show you how to do it.
__________________
eCommerce Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
Spiderden
View Public Profile
Send a private message to Spiderden
Visit Spiderden's homepage!
Find all posts by Spiderden
corner image corner image
  #9 (permalink)  
Old 18-03-2008, 12:27
PI Guy's Avatar
PI Guy PI Guy is offline
Blog Entry: PI?s descend on Birminham - The PI?s Diary repo...
I Live on A1!
 
Join Date: Mar 2008
Location: Surrey
Posts: 501
Thanks: 44
Thanked 65 Times in 55 Posts
Quote:
Originally Posted by Spiderden View Post
.htaccess is a Linux file but your site is on a Microsoft-IIS/6.0 server so .htaccess won't work for you.
ah ok so thats why it didn't work
__________________
Private Investigator & Process Server | e-legal | GATHERING | The PI's Diary | GPS Trackers | Private Investigator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
PI Guy
View Public Profile
Send a private message to PI Guy
Visit PI Guy's homepage!
Find all posts by PI Guy
corner image corner image
  #10 (permalink)  
Old 18-03-2008, 12:33
openmind's Avatar
openmind openmind is offline
Blog Entry: We will remember them?
Resident Server Geek
 
Join Date: Mar 2008
Location: In front of my computer...
Posts: 1,775
Thanks: 110
Thanked 339 Times in 256 Posts
301 redirects in IIS have to be set on the server itself unless your host provides a control panel for doing so. It can be done with scripting but setting in IIS is the best route.
__________________
Cheers, Phil

Are you Webbylisted? If not you should be...

eCommerce Software, UK Web Hosting, Dedicated Servers, Domain Names
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Google Bookmark this Post!
Reply With Quote
openmind
View Public Profile
Send a private message to openmind
Visit openmind's homepage!
Find all posts by openmind
Reply
Page 1 of 3 1 23 >

« spaces can cost money | SEO advice for my Target E-Commerce Keywords »

corner image corner image
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 05:48.


Calendar - Contact Us - A1 Business Forum UK - Archive - Top

© A1 Business Forums 2008

A1 Business Forums is a brand of Pixel Mind Ltd, a company registered in England and Wales with company number 06693709

Pixelcraze
Forum theme a Pixelcraze Creation





LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!
Share on Facebook Share on Facebook
Stumble this Thread Stumble this Thread
Google Bookmark this Thread Google Bookmark this Thread