htaccess gurus... please help me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roganoli
    Confirmed User
    • Dec 2004
    • 757

    #1

    htaccess gurus... please help me

    Hi guys,

    Today I changed my pages with the extension. shtm to. html

    Old page - http://www.rogerlinks.com/Hot-and-ve...ce-34408.shtml

    New page - http://www.rogerlinks.com/Hot-and-ve...ace-34408.html

    This certainly affects my SERP ranking in the short term.

    My question is:

    Is there any code to put in the htaccess file that redirect all extensions. shtml to. html?
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    RewriteEngine on
    RewriteBase /
    RewriteRule (.*).shtml$ /$1.html

    Comment

    • Juicy D. Links
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      someone double check what i wrote above i havent gotten any sleep lolol

      Comment

      • roganoli
        Confirmed User
        • Dec 2004
        • 757

        #4
        Thanks a lot... your answer helped me find on google with some modifications.

        RewriteEngine On
        RewriteBase /
        RewriteRule ^(.*)\.shtml$ /$1.html [R=301,L]

        Without this final part of the content is duplicated...

        Comment

        Working...