Submit Your Article Forum Rules

Page 3 of 12 FirstFirst 12345 ... LastLast
Results 21 to 30 of 114

Thread: Canonicalization Prevention Guide

  1. #21

    Re: Canonicalization Prevention Guide

    So if i understood correctly, to be able to have just a part of the site be https without touching the .htaccess file then all pages have to be php. Is this correct?

  2. #22
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    2,981

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by webmax View Post
    So if i understood correctly, to be able to have just a part of the site be https without touching the .htaccess file then all pages have to be php. Is this correct?
    Correct, unless you have a Control Panel that lets you accomplish the same thing.
    The best way to learn anything, is to question everything.
    Hidden Content

  3. #23
    Member
    Join Date
    Mar 2006
    Posts
    77

    Re: Canonicalization Prevention Guide

    On my interior pages, like www.mysite.com/help.html, my website shows an error if the user leaves off the .html (www.mysite.com/help). Is there something I can add to the .htaccess to fix that problem?

  4. #24
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    2,981

    Re: Canonicalization Prevention Guide

    It is possible. There are two situations you may encounter: the trailing slash may be omitted, or the file extension may be omitted. You would need to look at your logs and determine which happens more often and correct for that situation, and let the other situation be resolved through custom error pages.

    If you want to add a trailing slash / if no file name is specified (domain.com/file becomes domain.com/file/) use the following:

    Code:
    RedirectMatch 301 ^/([a-zA-Z0-9/]*)$ http://domain.com/$1/
    If you want to automatically add the extension .html, on the other hand, you would use the following:

    Code:
    RedirectMatch 301 ^/([a-zA-Z0-9/]*)$ http://domain.com/$1.html
    The best way to learn anything, is to question everything.
    Hidden Content

  5. #25

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by wige View Post
    Correct, unless you have a Control Panel that lets you accomplish the same thing.
    Thank you, Wige... although I doubt my Control Panel lets me do that. We host all our clients in GoDaddy. But we've come across something else - a little piece of javascript that you put into the html files that you want to keep as http. Would you mind checking to see that I didn't mess up again? The site is spauno.com. Only the "Reservation" pages and the contact sheets need to be https. What was happening was that when you navigated out of an https page and went to an http page, it would show this last page as also being secure, even if you had previously navigated it in http. This was creating the duplicate content. For some 6 months G wouldn't touch this site not even with a 10 foot pole. I hope this will get my client ranked.

  6. #26
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    2,981

    Re: Canonicalization Prevention Guide

    The Javascript you have in use seems to work, however this type of redirection is not generally supported by the search engine spiders. You could run the risk of the https version of the page being indexed or, worse, dropped if the search engines see the Javascript redirection as sneaky/suspicious.
    The best way to learn anything, is to question everything.
    Hidden Content

  7. #27

    Re: Canonicalization Prevention Guide

    Thank you so much for your help... and unfortunately you are right about being dropped. Over the weekend G un-indexed all pages except for the php and one html where we forgot to put in the "magic" code. Ouch. Like I said, the site has no htaccess file, goes crazy every time we try to put one in, and the Control Panel does not have an option for singling out pages, or much of an option for controlling anything really. Would you suggest we change everything into php? Or is there something else we can do?

  8. #28
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    2,981

    Re: Canonicalization Prevention Guide

    In your case I would recommend contacting your web host to find out what they recommend to get this working. You would get the best results from setting this up through .htaccess, but the hosting company may need to change or enable something to get it to work for you.
    The best way to learn anything, is to question everything.
    Hidden Content

  9. #29

    Re: Canonicalization Prevention Guide

    Again, thanks a lot for your help. I'll call GoDaddy to see what they can do. In the meantime, we've gone the way of all php files.

  10. #30
    Senior Member bj's Avatar
    Join Date
    Apr 2005
    Posts
    1,120

    Re: Canonicalization Prevention Guide

    Webmax, Godaddy is notorious for this sort of problem. My best suggestion to you is to simply google "Godaddy Hosting" and then, having had your eyes truly opened, search for a real host!

    I'd start your search here:

    Web Hosting Talk - The largest, most influential web hosting community on the Internet

Similar Threads

  1. URL Canonicalization
    By adisonclay in forum Search Engine Optimization Forum
    Replies: 5
    Last Post: 04-27-2010, 07:13 PM
  2. Canonicalization
    By gbb011 in forum Google Discussion Forum
    Replies: 10
    Last Post: 12-06-2007, 09:49 AM
  3. Click fraud prevention?
    By A. Smith in forum Marketing Strategies Discussion Forum
    Replies: 0
    Last Post: 07-26-2006, 07:30 PM
  4. Spam Prevention Tip
    By colr in forum Web Programming Discussion Forum
    Replies: 19
    Last Post: 08-25-2004, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •