Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 200
Renaming/moving a page? 301 redirect it! - Free Web Templates @ Template Hunter

Renaming/moving a page? 301 redirect it!


Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122

| Main | Template Blog | Webmaster Resources | Video Tutorials |


Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Template Offers
7,500 + Templates
osCommerce Templates
Template Membership
100's of Templates
Dreamweaver Templates

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Free Web Templates

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 21

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 23

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 25

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 27

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 29

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 31

Strict Standards: Non-static method remositoryUtilities::remos_get_module_parm() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 33

Strict Standards: Non-static method remositoryUtilities::remos_module_CSS() should not be called statically in /home/temphunt/public_html/modules/mod_remositorycat.php on line 61
CategoryeCommerce Templates(2)
CategoryFree Business Templates(4)
CategoryFree Portal Templates(1)

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Main Menu
Free Templates Home
Blog Templates
Dreamweaver Templates
Flash Templates
Logo Templates
Mambo Templates
Swish Templates
Buy Web Templates
View All Templates
Video Tutorials
Webmaster Articles
Write for Us
Advertise
Download Our Toolbar
Contact Us
Search
Link to Us
Webmaster Resources
Webmaster Feeds

Free Templates Home arrow Webmaster Articles arrow Web Design arrow Renaming/moving a page? 301 redirect it!

Template Blog



Strict Standards: Non-static method mosMainFrame::sessionCookieName() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 34

Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/components/com_content/content.php on line 36

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method HTML_content::show() should not be called statically in /home/temphunt/public_html/includes/Cache/Lite/Function.php on line 114

Strict Standards: Non-static method HTML_content::_Itemid() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 444

Strict Standards: Non-static method HTML_content::_linkInfo() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 447

Strict Standards: Non-static method HTML_content::Title() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 462

Strict Standards: Non-static method HTML_content::PdfIcon() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 465

Strict Standards: Non-static method mosHTML::PrintIcon() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 468

Strict Standards: Non-static method mosAdminMenus::ImageCheck() should not be called statically in /home/temphunt/public_html/includes/joomla.php on line 2245

Strict Standards: Non-static method HTML_content::EmailIcon() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 471

Strict Standards: Non-static method mosAdminMenus::ImageCheck() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 713
Renaming/moving a page? 301 redirect it!
Strict Standards: Non-static method HTML_content::EditIcon() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 615
Print E-mail

Strict Standards: Non-static method HTML_content::Section_Category() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 503

Strict Standards: Non-static method HTML_content::Section() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 738

Strict Standards: Non-static method HTML_content::Category() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 741

Strict Standards: Non-static method HTML_content::Author() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 506

Strict Standards: Non-static method HTML_content::CreateDate() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 509

Strict Standards: Non-static method HTML_content::URL() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 512

Strict Standards: Non-static method HTML_content::ModifiedDate() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 528

Strict Standards: Non-static method HTML_content::ReadMore() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 531
Written by Michael Bloch   

Strict Standards: Non-static method HTML_content::TOC() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 518

If you are considering moving a page on your web site into another folder or simply renaming it; there's a couple of important points to consider. The most important issue is that if the page you are moving or renaming has a good search engine ranking already, or may have been bookmarked by your visitors; all your hard work could be lost.

Bearing in mind that search engines can take months to refresh their listings, any visitor clicking on a search engine result may be severely frustrated if they don't arrive on the page on your site. You could always use a custom 404 error page; but this is still an extra hurdle for visitors to jump and the rankings you have built up for the page in question will be lost.

Wouldn't it be great if you could set up your site so it was "smart" enough to know that the page had been renamed or moved and then take the visitor to the correct page? Well, you can!

Enter the 301 redirect

One of the simplest ways to redirect visitors is to put up a blank page with what's known as a "meta-refresh" tag, but, this is frowned upon by many search engines and definitely won't save your rankings, so we won't discuss it any further. If you are currently using meta-refresh tags, it would be wise to consider changing them over to a 301 redirect as it is the most efficient and friendly solution. Search engine spiders and human visitors will be presented with the correct page if the old page is requested - seamlessly.

A 301 redirect is implemented in your .htaccess file.

What is .htaccess ?

.htaccess is a text file that is checked by the web server when a request for a page/item is made by a browser, agent or spider. It contains specific instructions on how to handle specific requests and also plays a role in security.

What's a 301 redirect?

"301" translates to "moved permanently". After the code, the name and location of the moved or renamed page is noted, then there is a space, and then the new location and name of the file.

Implementing a 301

First of all, check with your web host that you can use a 301 redirect - not all web servers will be compatible.

You'll then need to download the .htaccess file from your web site which can be found in the root of your documents directory via ftp (use ASCII mode). If a .htacess file isn't present, create one with Notepad or a similar text editor. Ensure you remember the "." at the beginning of the file name and do not use a tail extension

If there is a .htaccess file already in existence with lines of code present, be very careful not to change any existing code. It's probably wise to create a backup of this file in case you make a mistake.

Scroll down to the end of the current code, miss a line and then create a new line using the following example as a guide.

redirect 301 /current/currentname.htm http://www.you.com/newfolder/newname.htm

That's all there is to it - save and upload back to the document root directory and then test it out by typing the old address into your browser - you should be seamlessly redirected to the new page name/location.

Note: Do not use "http://www" in the first section of the statement - just add the path from the top level of your site to the page. Also ensure that you leave a single space between these elements:

redirect 301 (the directive that the page has permanently moved)

/currentfolder/currentname.htm (the old path and file name)

http://www.you.com/newfolder/newname.htm (new path and file name)

Moving/renaming many pages?

The basic 301 redirect is a great solution for changes to a few pages, but what about dozens of pages or an entire site? A more powerful set of instructions for URL redirects is contained in the Apache mod_rewrite module. Learn more about it here:

http://httpd.apache.org/ docs/misc/rewriteguide.html

Michael Bloch
Team ThinkHost
http://www.thinkhost.com

ThinkHost is an international web hosting company offering reliable and well supported FrontPage, PHP and MySQL hosting services, plus a wide range of related resources for their clients. This article is copyright (C) 2003 and cannot be reproduced without express written permission from ThinkHost.

 
Strict Standards: Non-static method HTML_content::Navigation() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 542

Strict Standards: Non-static method mosHTML::CloseButton() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 545

Strict Standards: Non-static method mosHTML::BackButton() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 548

Related Items


Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Tools
Bookmark Website
Bookmark Page
Make homepage
Print Page

Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Most Recent


Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Popular

Advertisement


Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Webmaster Tip

Strict Standards: Non-static method HTML_content::show() should not be called statically in /home/temphunt/public_html/modules/mod_newsflash.php on line 35

Strict Standards: Non-static method HTML_content::_Itemid() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 444

Strict Standards: Non-static method HTML_content::_linkInfo() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 447

Strict Standards: Non-static method HTML_content::Section_Category() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 503

Strict Standards: Non-static method HTML_content::Section() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 738

Strict Standards: Non-static method HTML_content::Category() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 741

Strict Standards: Non-static method HTML_content::Author() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 506

Strict Standards: Non-static method HTML_content::CreateDate() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 509

Strict Standards: Non-static method HTML_content::URL() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 512

Strict Standards: Non-static method HTML_content::ModifiedDate() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 528

Strict Standards: Non-static method HTML_content::ReadMore() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 531

Strict Standards: Non-static method HTML_content::TOC() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 518

Download Our Toolbar

 
Strict Standards: Non-static method HTML_content::Navigation() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 542

Strict Standards: Non-static method mosHTML::CloseButton() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 545

Strict Standards: Non-static method mosHTML::BackButton() should not be called statically in /home/temphunt/public_html/components/com_content/content.html.php on line 548
Advertise on Template Hunter

Strict Standards: Non-static method mosCache::getCache() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 133

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Login Form





Lost Password?

Strict Standards: Non-static method modules_html::module2() should not be called statically in /home/temphunt/public_html/includes/frontend.php on line 166

Strict Standards: Non-static method modules_html::modoutput_table() should not be called statically in /home/temphunt/public_html/includes/frontend.html.php on line 122
Who's Online
We have 1 guest online

Template Tuning
© 2002-2015 Template Hunter