Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

Changing Webpage Name


  • Please log in to reply
15 replies to this topic

#1 ImVickieB

ImVickieB

    HR 4

  • Active Members
  • PipPipPipPip
  • 139 posts

Posted 25 August 2003 - 11:59 AM

Hi,

What is the best way to change the url of a webpage so that google doesn't think I am trying to trick it?

I am listed in google with pregnancytests.html but I want to change it to pregnancy-tests.html

Can I use a htaccess redirect? Do I leave the page on the server but stop linking to it and have the menus on the site point to the new url? The page is going to be slightly changed but not by much.

I really would like to hear your suggestions.

Thanks!

#2 Jill

Jill

    High Rankings Advisor

  • Admin
  • 32,325 posts

Posted 25 August 2003 - 12:17 PM

Yes, you can use the .htaccess to redirect. Make sure you do the permanent redirect, as opposed to the temporary one. Want it to return a 301.

You don't need to leave the files up on the old server. All pages should redirect.

Jill

#3 ImVickieB

ImVickieB

    HR 4

  • Active Members
  • PipPipPipPip
  • 139 posts

Posted 25 August 2003 - 12:21 PM

Thanks Jill! :D

#4 torka

torka

    Vintage Babe

  • Moderator
  • 4,392 posts
  • Location:Triangle area, NC, USA, Earth (usually)

Posted 26 August 2003 - 08:56 AM

Yes, you can use the .htaccess to redirect.  Make sure you do the permanent redirect, as opposed to the temporary one.  Want it to return a 301. 

Okay, dumb question time. I know how to put a redirect statement into the .htaccess file, but what -- if anything -- extra do I need to do to make sure it's "the permanent kind" as opposed to a temporary one?

--Torka :D

#5 ImVickieB

ImVickieB

    HR 4

  • Active Members
  • PipPipPipPip
  • 139 posts

Posted 30 August 2003 - 03:38 PM

Hi Torka,

I think it is actually what you put into the htacess file. The coding example I found is:

Redirect permanent /one http://example.com/two

Hope that helps!

#6 BrianR

BrianR

    Is it just me, or is it getting cooler in the evenings...?

  • Members
  • PipPipPipPipPipPipPip
  • 1,621 posts
  • Location:Chester, UK

Posted 30 August 2003 - 04:49 PM

Hello Vickie B

Forgive me if I'm being stupid here, but I went to check out the coding example you gave for the permanent redirect but got a 404...

Thanks

BrianR

#7 ImVickieB

ImVickieB

    HR 4

  • Active Members
  • PipPipPipPip
  • 139 posts

Posted 30 August 2003 - 07:22 PM

Hi,

That was just an example Brian.

Let say you have a page on your site that you currently have named europeanwidgets.hmtl and you want to make it a smidge more optimized for the search engines, you might want to change it to european-widgets.html.

In your htaccess file for your website, you would put:

Redirect permanent /europeanwidgets.html http://yourwidgetsit...an-widgets.html

Now, any link on other webpages or in the search engines going to http://yourwidgetsit...eanwidgets.html will be automatically redirected to http://yourwidgetsit...an-widgets.html

Hope that helps!
Vickie

#8 Matt B

Matt B

    The modem is the message.

  • Active Members
  • PipPipPipPipPipPip
  • 558 posts
  • Location:Canton, OH

Posted 30 August 2003 - 10:15 PM

Have you thought about adding a custom 404 page as a catch-all to the rest of the traffic. Some of the search engines do not follow the 301 redirect, but a good 404 Page would keep people on your site despite any mispellings or page name changes.

Of course, this is only if you have a host that will do this for you . . . :)

#9 BrianR

BrianR

    Is it just me, or is it getting cooler in the evenings...?

  • Members
  • PipPipPipPipPipPipPip
  • 1,621 posts
  • Location:Chester, UK

Posted 31 August 2003 - 12:40 PM

Aaah... so I WAS being stupid!

But thank you for your patience, Vickie - NOW I understand!

And Matt, that's a great idea re the customised 404 page - a 'belt and braces' approach - I'm sure I can persuade the smaller hosts to oblige...

What great advice from both of you - this forum rocks!

BrianR

#10 Minerva

Minerva

    HR 4

  • Active Members
  • PipPipPipPip
  • 152 posts
  • Location:Massachusetts

Posted 05 September 2003 - 03:59 PM

I've got a related question. I'm redoing a site and will be using server-side includes for the lower-level navigation areas. My web host requires pages with server-side includes to have an extension of .shtml. Is changing a page from .html to .shtml the same as changing its name before the extension? Should I do redirects for these pages?

The previous posts were helpful. I hadn't thought of doing redirects via the htaccess file. I always did them in the old files, and kept them around. This is the best forum.

-Andrea-

#11 garyhall

garyhall

    HR 2

  • Active Members
  • PipPip
  • 38 posts

Posted 05 September 2003 - 05:50 PM

You don't need to leave the files up on the old server.  All pages should redirect.

Jill

Jill is correct. In our case we wanted certain old pages that referred to a particular product that is no longer sold to be directed to the new item.

The SE's still had the old pages indexed and why should we lose the visitor and make him search for the new item. Well that is our thinking any way. I am sure the mighty brains on this forum will say, Hey you could have done it this way or that.... <g> I can tell you I have been set straight more than once and it was appreciated too.

Anyway, below is the code I used to "customize" each page. Bring up the page, highlight all and delete. Then cut-n-paste the following code into the now blank page. Modify to your tastesave the page and test.

The part of keeping the old pages is not much of a problem for us as they are 1 kb and we ask the SE not to reindex. So after 6 months when we see no more log activity on that particular page we delete it. Not a big deal as we are FTPing in all the time doing other things anyway.

I posted this once before, I hope it is a help to you.

Regards,

Gary
- - - - - - - - - - - - - -
You will want to add the following to the <head> section of the pages:

<meta http-equiv="refresh" content="x; url=y">

where x is the number of seconds delay before redirection occurs and y
is the new URL. You may also want to add some code to the page body to
include a link to the new page, in case the visitor's browser does not
support redirection. A complete code example could look like

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR...l4/strict.dtd">

<html lang="en-us">
<head>
<title>TITLE</title>

<meta http-equiv="refresh" content="5; url=NEW_URL">

<meta name="robots" content="noindex,follow">

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<p>This page has moved. If you are not
automatically redirected within five seconds, please
follow this link to <a href="NEW_URL">NEW_URL</a>.</p>
</body>
</html>

where the obvious are subsituted for TITLE and NEW_URL.

#12 Minerva

Minerva

    HR 4

  • Active Members
  • PipPipPipPip
  • 152 posts
  • Location:Massachusetts

Posted 05 September 2003 - 05:57 PM

Gary - that's how I've been doing redirects, too. But I want to look into the .htaccess file method. It sounds like it might be good for those of us who don't want to be bothered keeping track of the old pages.

The simpler the better!

-Andrea-

#13 realnames

realnames

    HR 1

  • Members
  • Pip
  • 1 posts

Posted 06 September 2003 - 03:31 AM

.....that's a great idea re the customised 404 page........

Could someone please explain exactly how to do a 404? Thanks!

#14 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,294 posts
  • Location:Columbia, SC

Posted 06 September 2003 - 07:31 AM

The hosts I use look for a page named 404.shtml to return a 404 error- I think that is pretty standard but check with your host to be sure.

Just create a page with your standard navigation, look and feel, along with a message "Sorry this page doesn't exist / has moved", save as 404.shtml and upload it to the same folder your home page is in.

I recommend using fully qualified URL's (as opposed to relative, I.E.- include http://) on a custom error page- then if you have or create subfolders, the links and images on your page will still work.

#15 qwerty

qwerty

    HR 10

  • Moderator
  • 8,295 posts
  • Location:Somerville, MA

Posted 06 September 2003 - 08:01 AM

It's different if your site is hosted on a Windows server. You can call the file whatever you want, and then you point IIS to it. Here are the instructions from Microsoft:

To customize an error message by mapping to a file
Create a file that contains your custom error message, and place it in a directory.
In the Internet Information Services snap-in, select the Web site, virtual directory, directory, or file you would like to customize HTTP errors, and then click Properties.
Select Custom Errors.
Select the HTTP error that you would like to change, in this case 404.
Click Edit Properties.
Select File from the drop-down list.
Enter the full path that points to your customized error message, or use Browse... to locate the file on your computer's hard disk.
Click OK.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users