Multiple page 301 redirect via htaccess?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c-lo
    Confirmed User
    • May 2005
    • 925

    #1

    Multiple page 301 redirect via htaccess?

    Here's the deal: I've renamed all the pages on my site a total of three times now. First they were .html pages, then .php, now they are .shtml. I've put 301's in my htaccess file to redirect all the php versions to the new .shtml versions, BUT I'm still getting backlinks to the old .html versions of the pages.

    I was wondering if there are any problems with having both the .html versions and .php versions redirecting to the .shtml versions. In other words, do I risk penalty by having my htaccess tell the SE's that 2 previous pages have been permanently moved to one new page? Anyone ever had to do this?

    Thanks,
    c-lo
    The AlphaPhaze Network
    Traffic & Hardlink Trades | Sponsors | Resources
    The adult marketing network you can trust
  • Iron Fist
    Too lazy to set a custom title
    • Dec 2006
    • 23400

    #2
    if they are all named "index" delete the others and leave the new one in the directory and you'll have no problem. Otherwise....

    RedirectMatch 301 (.*)\.php$ http://www.example.com$1.shtml
    i like waffles

    Comment

    • c-lo
      Confirmed User
      • May 2005
      • 925

      #3
      Awesome! I've been doing it the old way, page by page...this saves me a lot of time. Thanks a lot, man.

      Also, I guess I won't get penalized for having 2 versions of the same page (ex. amateur.html and amateur.php) redirecting to amateur.shtml?

      Thanks again.
      Last edited by c-lo; 11-26-2007, 08:13 PM.
      The AlphaPhaze Network
      Traffic & Hardlink Trades | Sponsors | Resources
      The adult marketing network you can trust

      Comment

      • d-null
        . . .
        • Apr 2007
        • 13724

        #4
        how can you do this on a windows server?

        __________________

        Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
        Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
        Check out the #1 WordPress SEO Plugin: CyberSEO Suite

        Comment

        • V_RocKs
          Damn Right I Kiss Ass!
          • Nov 2003
          • 32448

          #5
          Are you getting 2000 hits a day to the page from google?

          If not... don't worry.

          Comment

          Working...