|
pageoneresults -> RE: Creating HTTP 301 redirect (1/5/2005 11:51:23)
|
quote:
Create a blank page called default.htm. Then implement the following... http://www.seoconsultants.com/tips/asp/301.asp This will redirect the SE spider to the correct page. I've got to correct something here. The above method only works with .asp pages. The asp code for the redirect will not work on an .htm or .html page. You would have been better off to have kept the default.htm for your root level page. Why? Because there may be many inbound links that use a full URI including the /default.htm file reference. This can be a real pain as I'm about to explain. When you change anything with a file name, extension, underlying technology, etc., you have to be careful that you put something in place to capture those visitors visiting an old URI reference. URI stands for Uniform Resource Identifier and is used in place of URL which has been deprecated (in the specifications). Anyway, back to the topic... When you are building your site, one thing you want to absolutely make sure of, is that you don't link to root level pages. For example, here is how a link would be constructed for your home page... http://www.example.com/ Here is how a link would be constructed for a home page in a sub-directory... http://www.example.com/sub/ Notice that I did not include the index.htm or whatever the home page may be called. You can literally name that root level page anything as long as your host has made certain changes in IIS to reflect that. I prefer index.asp or index.htm. They are the simplest and shortest of the available options and are pretty much the standard these days. So what may have happened in this case is that you had internal links within your site that pointed to /default.htm. Many times you will see your search engine listing with this full URI. You don't want that! You want that root address pointing to http://www.example.com/ Follow me on all of this? ;) Now, to address your issue. The best thing would be to have the host install ISAPI_Rewrite and then you can drop an ini file in your root that will handle this with no problems. Or, ask your host what type of solution they can provide for you in this particular case. From my perspective, the ini file is absolutely the best option. 2nd best option would be to have the host set up a 301 for you through IIS.
|
|
|
|